masterjake
New Member
- Messages
- 73
- Reaction score
- 0
- Points
- 0
Hi! I was messing around and thought of a way to make a who's online script the easy way. Basically, in my members database I have a field called "online" which is default set to 0. When they click login, if it's a success then a MySQL statement runs which sets online to 1. I also have a small script to test if anyone has online set to 1 and if so display their username to the right of the page. The only problem with this is that a lot of people never actually click the logout button and I have it set online back to 0 when they click logout. This shows them as online forever when they actually aren't.
So, I decided to get help with an actual who's online script. Can someone please post one for me =]?
So, I decided to get help with an actual who's online script. Can someone please post one for me =]?