MortimerJazz Posted January 26, 2007 Share Posted January 26, 2007 Hi there,I'm trying to calculate the time since a registered user last logged into a website.I have two variables: $last_login (timestamp from DB showing the last time a particular user logged in)now() - Timestamp showing current time/dateI've tried subtracting one from the other, but I'm not getting the result that I needed.Can anyone help me at all?Thanks, Quote Link to comment 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.