Hi,
I have a field in my DB that saves the date/time as a integer.
I get the time on my server using the time() function.
now, moving away from php and looking at (My)SQL only.
If I use functions like DATE() or NOW(), I don't get a Unix value, (but
rather a formatted date).
So I cannot use those functions to check against my saved value.
How can I run a query that would get, say, 1 hour before the current time?
Many thanks in advance.
Simon
I have a field in my DB that saves the date/time as a integer.
I get the time on my server using the time() function.
now, moving away from php and looking at (My)SQL only.
If I use functions like DATE() or NOW(), I don't get a Unix value, (but
rather a formatted date).
So I cannot use those functions to check against my saved value.
How can I run a query that would get, say, 1 hour before the current time?
Many thanks in advance.
Simon
Comment