Possible Duplicate:
PHP:find day difference between two date(“YmdHis”) reture
What I want to do is to get day from database, current date. And check if difference between them > 1 day:
$curdate= date("Y-m-d H:i:s");
$dbdate
is value stored in datetime format in db.
$dif=$curdate-dbdate;
How to check if $dif>1 day
??