kid mysql_query SELECT FROM users WHERE kidala ORDER BY id DESC limit

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$kid = mysql_query("SELECT * FROM `users` WHERE `kidala` = 1 ORDER BY `id` DESC limit 5");
if (mysql_num_rows($kid) > 0){
while($kid = mysql_fetch_assoc($kid))
{
echo '<a href="/user/'. $kid['id'] .'"><div class="mego">'.icon($kid['id']).' '. nick($kid['id']) .'<span class="count">['. vtime($us['date_last_entry']) .']</span></a></div> ';
}
}
else {
echo"<center>Доска позора пуста</center>";
}