Anybody any idea about this?i don’t know with what to replace the (1 minute) in order to work;
.$checktime['car_date'] is a value in database and is like this 2012-04-14 04:18:14
$time=time();
$checktime=mysql_num_rows($get_cars);
if($time<$checktime['car_date'] - (1 minute))
{
$sqlhour = mysql_query("DELETE FROM car
WHERE car_date < current_timestamp - interval '1' minute;");
}
I believe that
$checktime['car_date']is the time is seconds. If so 1 minute is:So you would get:
Update
Since the
$checktime['car_date']variable is a sql timestamp you should first convert it intoseconds since UNIX epoch: