Файл: AdminPanel/adminmailread.php
Строк: 5
<?php
$user['set'] = 10;
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_mail` ORDER BY `id` DESC"),0);
if ($k_post==0)
{
echo "Пусто!";
}
$k_page = k_page($k_post,$user['set']);
$page = page($k_page);
$start = $user['set']*$page-$user['set'];
$post_s = mysql_query("SELECT * FROM `mystyle_mail` ORDER BY `id` DESC LIMIT $start, $user[set]");
while($post = mysql_fetch_array($post_s))
{
echo '<div class="btn">';
echo users($post['id_user']); echo '-'; echo users($post['id_kont']);
echo '</div>';
echo '<div class="btn">';
echo $post['msg'];
echo '</div>';
}
if ($k_page>1)str("?adminmailread&",$k_page,$page);
?>