Jump to content
MakeWebGames

Recommended Posts

Posted

historical tracking for your users online page

 

add this code somewhere on your users online page:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

here is the sql for it

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: Upgrade Users Online

thanks

If I don't get flamed I'll add more, I have used a bunch of stuff from this forum. (granted most of the stuff doesn't work out of the box 90% of the time) If you see a mod from me you can be sure its been tested thoroughly

Posted

Re: Upgrade Users Online

To get this working. Once you've create the table. Run this SQL:

INSERT INTO `records` ( `recID` , `rec24` , `rec60` , `rec15` )

VALUES (

'1', '1', '1', '1'

);

Reason?

WHERE recid=1

The table starts empty, with no recID with the value of 1.

Guest Anonymous
Posted

Re: Upgrade Users Online

Waste of a table that -- Slap it into one query...

SELECT 5 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (5 * 60)

UNION SELECT 15 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (15 * 60)

UNION SELECT 30 AS minutes, COUNT(username) AS users FROM users WHERE laston >= UNIX_TIMESTAMP() - (30 * 60)

Add further UNION statements as appropriate

  • 4 weeks later...

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...