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

Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The

AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

Only add new information from XML to MySQL
What I am doing, is taking a xml file, and adding the values to a database. However, what I want to

Gantt Chart Tool
Does anyone know of a good free gantt chart creator tool

Thanks

Problem with the Update command used with a sqldataadapter
I'm connected to a database on an SQL Server and I'm using a sqldataadapter, sqlconnection, sqldatas

PL/SQL: ORA-00947: not enough values error message
Hi all i am getting Error(25,63): PL/SQL: ORA-00947: not enough values error message when executing

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

Bandwidth monitoring?
Hi guys,

I need a little information I have written a php app and I occurred to that I need

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

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