xwishmasterx Posted May 21, 2012 Share Posted May 21, 2012 Hello I am trying to do a cronjob to check if a user has been online within the past 24 hours. I have a column with "last_login" with this format: "1337593284". How can I do a simple if (last_login+24hours< servertime) { do something... Quote Link to comment https://forums.phpfreaks.com/topic/262858-need-help-with-time24-hours/ Share on other sites More sharing options...
Braxton Posted May 21, 2012 Share Posted May 21, 2012 if (last_login + 86400 < server_time) { Quote Link to comment https://forums.phpfreaks.com/topic/262858-need-help-with-time24-hours/#findComment-1347237 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.