Jump to content

[SOLVED] Delete MySQL range


salman_ahad@yahoo.com

Recommended Posts

Thanks Joel..

 

Also I need to pick some accounts between a datetime range of last 5 mins..this is what I got.

 

$timenow = time();
$fiveminsb4 = $timenow - 300;
$query_users = mysql_query("SELECT userid FROM *table* WHERE datetime BETWEEN '".$timenow."' AND '".$fiveminsb4."')");

//is there a better logic??

 

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.