Database: complex where clause with time
Notice: This thread is very old.
- ydenda
- Member | 21
Hello together,
I have stupid issue with the database request:
this works:
this not:
on the second example TRACY reports sql error
SQLSTATE[22007]: Invalid datetime format
So I presume Nette provides any formatting of mysql time/date. How can I get rid off it or what is the best practice?
PS:I try to perform the time range check using mysql, which should be faster than php way…
- ydenda
- Member | 21
Hi CZechBoY,
it works; shame I haven't figured it out, thanks.
Any idea why it didn't work in the recommended way (the 2nd php code in my quesetion)?