Users Online List

Would this work?

Page 1 of 1

5 Replies - 556 Views - Last Post: 13 June 2009 - 03:43 AM Rate Topic: -----

#1 Mcbazzo  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 72
  • Joined: 29-August 08

Users Online List

Posted 13 June 2009 - 01:01 AM

Okay I'm trying to make a page which list all players online and was wondering if this would work, however I don't have the codes ATM. Anyway I was thinking of adding another column into the database of the users which will be name online? here the default will be NO however when a user logs in then this is changed to YES and when logs off it is changed to NO again. Then on the page of the list I would have a code that say if a users online? column = YES then show user else do not show user.
Would this work and if so could you help me a little on the codes.
Thankyou ;]

Is This A Good Question/Topic? 0
  • +

Replies To: Users Online List

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5191
  • View blog
  • Posts: 26,901
  • Joined: 10-May 07

Re: Users Online List

Posted 13 June 2009 - 01:02 AM

If you can do this in PHP, here is a great Tutorial!
Was This Post Helpful? 0
  • +
  • -

#3 Mcbazzo  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 72
  • Joined: 29-August 08

Re: Users Online List

Posted 13 June 2009 - 01:04 AM

View Postno2pencil, on 13 Jun, 2009 - 12:02 AM, said:

If you can do this in PHP, here is a great Tutorial!


Ill check this out thnks
Was This Post Helpful? 0
  • +
  • -

#4 Mcbazzo  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 72
  • Joined: 29-August 08

Re: Users Online List

Posted 13 June 2009 - 01:26 AM

I couldn't do it because i already have the database and adding a new one didnt work

Basically i just need a code tht changes database data when you click the login button, and the same for logoff

This post has been edited by Mcbazzo: 13 June 2009 - 01:28 AM

Was This Post Helpful? 0
  • +
  • -

#5 Kanvus  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 42
  • View blog
  • Posts: 452
  • Joined: 19-February 09

Re: Users Online List

Posted 13 June 2009 - 03:20 AM

mysql, right? do you know how to connect to your database and change data from php? that is the jist of it. the coding for on and off would be simple compared to knowing how to use your mysql from php.
Was This Post Helpful? 0
  • +
  • -

#6 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1002
  • View blog
  • Posts: 3,562
  • Joined: 05-June 09

Re: Users Online List

Posted 13 June 2009 - 03:43 AM

View PostMcbazzo, on 13 Jun, 2009 - 12:26 AM, said:

Basically i just need a code tht changes database data when you click the login button, and the same for logoff

You'll need to use some timestamp-based system, what if users don't click Logout? ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1