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

Notice Undefined index: reset/ Attempting to redirect, works, but get a notice
Full Header.php is:
Code: [Select]<?php
$reset= false;
$reset= strip_tags($_GET[&quo

PayPal Redirect Issue
When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it work

Error in write byte array into document in SM58
Hi Gurus,

Getting the following error status in Transactional RFC (SM58) ..... *Error i

RSS poster script?
I have found a script that posts RSS's for me on a site that I'm building. However I would like to a

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

$get problem
Hi Guys ...

can you please tell me what i am doing wrong here
Code: <?php

Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first s

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

Contents of variable not echoing
Hey guys, hopefully this is an easy one...

In this line, the variables are not echoing out. 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