<? $rand=mysql_query("SELECT * FROM `user` WHERE `date_last` > '".(time()-306666660)."' ORDER BY rand() LIMIT 5");
echo "<div class='p_m'>";
$check=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-36666600558)."'"),0);
if ($check==0)
{
echo "<center>Нет юзеров онлайн</center>";
}
else
{
while ($ank=mysql_fetch_array($rand))
{
echo "<a href='/info.php?id=$ank[id]'>";
avatar10($ank['id']);
echo "</a>";
}
}
echo "</div>";?>