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();

$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

DateObject and Nulls
Hi all,

I have an array mapped to a value object. One of the items in the array is a PHP Date

Syntax Help
I'm trying to make a form that edits a php file which contains config settings. I'm using strings t

Query output more than expected
$query=mysql_query("SELECT * FROM players, communities, divisions WHERE dob BETWEEN '{$start_da

how to configure ADS in ABAP instance
Hi All,

I am working on r/3 4.7 ABAP system.Can we configure ADS(adobe document services)

Undefined Index Notice In Internet Explorer Only
I am getting the following notice:

QuoteNotice: Undefined index: jrox in /home/ycsn/public_h

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data

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