dean7 Posted May 12, 2009 Share Posted May 12, 2009 Hi, im am trying to code online users so you will see whos online on my website but not sure how to do it . Anyone got any tips? Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/157832-help-with-whos-online/ Share on other sites More sharing options...
mikr Posted May 12, 2009 Share Posted May 12, 2009 If you've got a mysql db, you can have a datetimestamp field in a user table. Every time a page is refreshed, the user refreshes their row in the mysql db. Then, they do a select on that table, looking for all the folks who have refreshed in the last 5 to 30 minutes and count them as who's online. It won't be 100% correct, but it will be roughly correct. Link to comment https://forums.phpfreaks.com/topic/157832-help-with-whos-online/#findComment-832474 Share on other sites More sharing options...
dean7 Posted May 12, 2009 Author Share Posted May 12, 2009 Thanks Just got to think how i would code it Link to comment https://forums.phpfreaks.com/topic/157832-help-with-whos-online/#findComment-832476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.