How To Display Online Registered Users Name ?

saqib389saqib389 BeginnerLink Clerk
I WANT to display registered online users name ..... how it can b possible

example

registered users online
saqib
azhar
jhon
bush
etc


here is my table info.... in mysql
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';



please help me outttttttttt

Comments

  • PythonPython Forum Leader The Royal RAM
    have a column in your database called lastvisit

    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

Sign In or Register to comment.