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. 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) 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
Archived
This topic is now archived and is closed to further replies.