Jump to content

Fails to select time before desired ammount of time..


inversesoft123

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.