Hey andrewsco,
As for knowing how many users are online, I use this method.
make a table in your database to hold this information:
on_now //This is the ID number for this insert (AUTO_INCREMENT)
user_id //The users ID number
user_timestamp //A Unix Time stamp value
Then when the user logs into your site create a session that will hold their ID number (user_id).
Now create a script that checks to see if the users ID number is alread in the (above) database. If it is do not update the database. If it is not add the user to the database.
Then on the side or front page you can just pull all of the info from the database and display it.
Be sure to also use that unix timestamp to remove old entries.
Save the script you just made and call it in an include on all of your pages. 
__________________
Please login or register to view this content. Registration is FREE - 100 Satisfied Customers - Custom Programming and Web Development
|