how to add 3 hours to the current time in php ?
$expired = time() + "3 hours";
$time = time();
if($time < $expired){
condition....
}
how to add 3 hours to the current time in php ?
$expired = time() + "3 hours";
$time = time();
if($time < $expired){
condition....
}
The DATE_ADD()
function will work.
DATE_ADD(NOW(), INTERVAL 2 HOUR)