srinivas6203 Posted December 17, 2007 Share Posted December 17, 2007 Hi every one I am developing one website using php and mysql. I want to put user last visit time , when user login into my website. Can anyone help me about this. Thanq Link to comment https://forums.phpfreaks.com/topic/81993-users-last-visit-time/ Share on other sites More sharing options...
PC Nerd Posted December 17, 2007 Share Posted December 17, 2007 hi. Create a field in Mysql within your users account and name it Last_Login, and have its value as a timestamp. than when your user logs in update that field to =: date(), or strtotime("now YOUR_TIMEZONE"); etc etc. look into your date functions. gdlk Link to comment https://forums.phpfreaks.com/topic/81993-users-last-visit-time/#findComment-416628 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.