INeedAGig Posted April 4, 2011 Share Posted April 4, 2011 Hey guys. I was wondering how I would go about echoing the last logged in user with time/date when I log into my database? For example, I already have it echoing your username when you log in, i.e. "Welcome Username, Logout" but I would like to echo the prior logged in username with the time and date they logged in on a different line. Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/ Share on other sites More sharing options...
Maq Posted April 4, 2011 Share Posted April 4, 2011 If you store the date/time in your DB then you would just ORDER BY date DESC LIMIT 1 Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/#findComment-1196787 Share on other sites More sharing options...
INeedAGig Posted April 5, 2011 Author Share Posted April 5, 2011 bump Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/#findComment-1197019 Share on other sites More sharing options...
3raser Posted April 5, 2011 Share Posted April 5, 2011 bump I believe Maq just gave you your solution, to the DB part. Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/#findComment-1197021 Share on other sites More sharing options...
Maq Posted April 5, 2011 Share Posted April 5, 2011 bump So did you even make an effort to figure this out? Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/#findComment-1197200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.