Display The Names From Online Users
Lets say i have 10 users in my database.
I want to display 2 dynamic tables, one with the names from online users and one with the names from offline one..
Any suggestion i am a bit confused
Thats not an easy question, but I think an easy way to implement a feature might be to have 2 tables (all users (lets call it 'users'), and one containing the users last activity time (lets call it 'user_ping')) Everytime the user makes a request it gets logged in user_ping...then to differentiate online vs offline users simply query the users with a ping time in the last 5 minutes.
OF course this is not the entire solution or completely fool proof, you would have to get more tricky maybe with ajax calls and keystrokes to be more accurate...but it is an easy start using only PHP.
We do precision guesswork
How we made logout concept in our web form?
In my Point of view.Its so difficult, but PHP gives a better solution using those values in data base.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)