Jump to content
MakeWebGames

Recommended Posts

Posted

Hello everyone,

I know that there are already about 50 'users online' scripts on the website, though I have yet to see one that shows all of the games users ordered by the time that they were last online. (from most recent all the way down to least recent)

I know that this is a n00bish question to ask, though any help would be appreiated.

Posted

Re: [REQUEST] Users Online

hmmm that is a simple change on the usersonline sql statement...

$q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); <- default usersonline

$q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp() ORDER BY laston DESC"); <- shows all

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...