I have a DB created by a third party vendor that I'm now writing a new UI for.
The DB stores event start times as unix timestamps (in GMT). What I need to do is query this for a one day range. So presumably I simply need to do a:
SELECT * WHERE start > $last_night_at_midnight AND start < $tonight_at_midnight
The problem I'm running into is a simple way to combine the date/time functions in PHP to create those variables. It feels like everything I'm doing is way too complicated for such a simple procedure.
Does anyone have a simple solution to this?
Cheers