Here is my code
this works ![]()
echo '</div><div class="menu">' . counters::online() . '<br />';
$sql = mysql_query("SELECT `id`, `name` FROM `users` WHERE `lastdate` > " . (time() - 300) . "");
$count = mysql_num_rows($sql);
if ($count) {
$i = $count;
//echo '<div style="text-align: center">';
while ($res = mysql_fetch_assoc($sql)) {
echo '<a href="' . $home . '/users/profile.php?user=' . $res['id'] . '">' . $res['name'] . '</a>' . ($count > 1 ? ', ' : '');
$count --;