When the users login , i want to show the status is online in php. What is the code? Thanks!
cliffcc
0
Junior Poster
Recommended Answers
Jump to PostUse flag variable in the user's profile table of your database. When the user login to the system update the field with value 1 and update 0 when he/the log out from the system. Then display a green light icon if that field in database is 1 else show gray …
Jump to PostHi dude
Add a field called 'status' in users table. where users table containing all data of user.
UPDATE 'status' to 'online' when user login.. this code will be placed after validating the username and password..
// Eg: When you starting a session for the user write …
All 6 Replies
karthik_ppts
81
Posting Pro
rayidi
commented:
Helpful reply
+0
cliffcc
0
Junior Poster
aidant
0
Newbie Poster
rayidi
3
Light Poster
karthik_ppts
commented:
Helpful post
+4
karthik_ppts
81
Posting Pro
rayidi
3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.