Hello, since i am new to the forum please excuse me if the topic is not in the correct section. I would like to ask how to do the next thing i mean when you have a limit on who is online and who does not say 30 users are online and when they become 31 to stop there to list users, while the bottom where $numb of Online users ($numb) continues to display more and more online users ... I hope you understand me what i mean :)
<div class="menu">
<div class="value">
<?
$time = time()-3*60;
$user = $logged['username'];
$query = mysql_query("UPDATE users SET status = '$time' WHERE username='$user'") or die (mysql_error());
$query1 = mysql_query("SELECT * FROM users WHERE status >= '$time'") or die (mysql_error());
$broi = mysql_num_rows($query1);
if($broi == 0)
{
echo "<font color='red'><img src='templates/img/icons/user_offline.gif' /> No online users. </font><hr>";
}
else
{
$row = mysql_fetch_array($query1);
echo "<hr class='dash' /><div><b><a href='profile?user=$row[username]'>$row[username]</a></b> <span style='float:right; margin-right: 5px;'><img src='templates/img/icons/online.gif' /></span></div> <hr class='dash' />";
}
echo "Online total: <b>".$broi."</b>";
?>
</div>Online users($numb)
</div>