'" . ($realtime - 300) . "'"), 0); $qon = mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate`>='" . $ontime . "';"); $qon2 = mysql_result($qon, 0); echo 'Member On: '; $onltime = $realtime - 300; $q = @mysql_query("select * from `users` where lastdate>='" . intval($onltime) . "';"); $count = mysql_num_rows($q); while ($arr = mysql_fetch_array($q)) { $u_on[]="$arr[name]"; } echo implode(', ',$u_on).'.'; echo ' (' . $qon2 . ')'; echo '
Visitor On: ' . $guests . ''; ?>