inversesoft123 Posted July 19, 2011 Share Posted July 19, 2011 having math problem.. please help $timeoutdd = 1500; // timeout $timeondd = time()-$timeoutdd; // current time minus timeout $noiddwww = mysql_query("DELETE FROM wf_actv WHERE date <'".$timeondd."'"); ^^^^ Above query works properly now my problem is when i compare with timestamp it fails WHY ??? if($selectalbum3[tweet] == "0" && $selectalbum3[lasttw] >= '$timeondd') { // this query fails to select time before 15 mins ( ^^^^^^ this fails Note: lasttw is updated into database when tweet updates from 0 to 1 for recently updated status. Quote Link to comment https://forums.phpfreaks.com/topic/242304-fails-to-select-time-before-desired-ammount-of-time/ Share on other sites More sharing options...
btherl Posted July 19, 2011 Share Posted July 19, 2011 if($selectalbum3[tweet] == "0" && $selectalbum3[lasttw] >= '$timeondd') Instead of this, try: if($selectalbum3[tweet] == "0" && $selectalbum3[lasttw] >= $timeondd) Quote Link to comment https://forums.phpfreaks.com/topic/242304-fails-to-select-time-before-desired-ammount-of-time/#findComment-1244456 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.