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. Quote 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 Quote 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 Quote 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. Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/232683-echo-last-user/#findComment-1197200 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.