SQL Time

admin

Administrator
Staff member
I'm trying to check an entry into a database to see if it is new or not something like this.. if ($sqldateonfile <= time()+259200) {
echo "New";
}
or something like that.
but when I try to verify it that way the $sqldateonfile returns 0000-00-00 00:00:00 format and I need it in seconds in epoch or maybe I can change the time()+259200?
Please help. Thanks in advance.
 
Back
Top