Hello I am trying to show only restaurants that are open, which is fine, I use this:
hours.hour1 < '$timecompare' AND hours.hour2 > '$timecompare'
The problem is sometimes a restaurant is open until 2AM, so in the hour2 field it says 02:00:00, but that breaks the search because it's esentially looking only at today, which is only a 24 hour period.
Is there any way around this, or to better structure my statement?