Help With Showing Users On the Index Page

Posted on 16th Feb 2014 by admin

Ive got this code which works just how i want it to.

Code: <?
$timenow=time();

$select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER by id ASC");

$num = mysql_num_rows($select);



?>

Code: <?=$num?>

But i want to no how to show 5 users recently online rather the number example
"short3,bullet,ghost rider where online recently"

Other forums