Help With Showing Users On the Index Page


Posted on 16th Feb 2014 07:03 pm by admin

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

Code: <?
$timenow=time();
Did you know?Explore Trending and Topic pages for more stories like this.

$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"
No comments posted yet

Your Answer:

Login to answer
174 Like 13 Dislike
Previous forums Next forums
Other forums

Entering Data Problem
Code: $result = mysql_query("SELECT * FROM flights");
while ($row = mysql_fetch_array($

Php mysql - select?
Hi i have this code:
Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid =

Image DPI
Hi.

I allow users to upload images, the user then is able to adjust several settings for the

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

unexpected T_STRING
error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error

PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see

values in array being escaped
I would like to submit some values - back to the same form for checking before processing...

getting a website's source code as a variable? How?
Hey guys, is there any way for me to get the source code of a website as a variable for me to work w

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash