It looks like you're new here. If you want to get involved, click one of these buttons!
CREATE TABLE users (
userid int(25) NOT NULL auto_increment,
first_name varchar(25) NOT NULL default '',
last_name varchar(25) NOT NULL default '',
email_address varchar(255) NOT NULL default '',
username varchar(25) NOT NULL default '',
password varchar(255) NOT NULL default '',
info text NOT NULL,
signup_date datetime NOT NULL default '0000-00-00 00:00:00',
activated enum('0','1') default NULL,
decrypted_password varchar(255) NOT NULL default '',
PRIMARY KEY (userid),
UNIQUE KEY username (username)
) TYPE=MyISAM COMMENT=' Membership Information';
Comments
When the user logs in or goes to another page have that updated to the current time... The the part which displays which users are online check to see if that time is more than 5 minutes ago.. If it is then it means they havent moved page for at least 5 minutes so they have probably left the site and are not online...
The Royal Ram