how i can to: "X users are online now"? by using php and mysql table?
if you have the right code please post it here..
thank you
As HTTP is a stateless protocol you can never get exact results however the easiest, and the way most forum software does it, is to do the following;
1.) On each page load, write a timestamp and the destination IP to the table.
2.) To count the number of users query for the number of unique IPs recorded within the last x minutes.