shadiadiph Posted March 2, 2009 Share Posted March 2, 2009 I am trying to find out if the time has been more than 5 minutes since the time stored in the database. I am setting the current time. $validtm = date("h:i:s"); and calling the time from the database. $tmlogged = $row["tmlogged"]; I am terrible with time statements can smeone help me with this i want to know if the current time $validtm is more than 5 minutes older than the time in the database $tmlogged? Quote Link to comment https://forums.phpfreaks.com/topic/147523-solved-time-query/ Share on other sites More sharing options...
RussellReal Posted March 2, 2009 Share Posted March 2, 2009 apply strtotime on both values and then do the math Quote Link to comment https://forums.phpfreaks.com/topic/147523-solved-time-query/#findComment-774428 Share on other sites More sharing options...
shadiadiph Posted March 2, 2009 Author Share Posted March 2, 2009 thanks figured it out Quote Link to comment https://forums.phpfreaks.com/topic/147523-solved-time-query/#findComment-774447 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.