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

All possible combinations of Strings from table in PL/SQL
Hi,

I am trying to figure out how to build a list of all possible string combinations fro

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

First root of a number
Hi,

I can't find any function in php to give me the first root of a number.
Is there any

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

My XSRF Prevention code isn't working
First of all, thanks for the generous help you guys have given me in the past on this forum.
Seco

getting Vars to pass to next page.
Hello all,
I have a confusing situation on my hands, i am a member of a gaming community and we

Simple program to copy files between two computers over the web
I use logmein free and often need to move files between my two computers. Generally, I move the file

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t

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