Any help is highly appreciated.
Say I have a MySQL database with a timestamp column with the value \"1305590400\", how can I compare that with a PHP variable of say
You don't get results that probably $date
has some time offset and is not equal to 00:00:00
in your timezone.
WHERE timestamp_column BETWEEN '" . strtotime($date) . "' AND '" . strtotime($date, '+1 day') . "'
or to be more precise:
WHERE timestamp_column >= '" . strtotime($date) . "'
AND timestamp_column < '" . strtotime($date, '+1 day') . "'