I am building a banner rotation system, and in my sql table i have a datetime field to store when the banner will join the print queue, and a field to store when it leaves. I need a query to show all of them that are in the queue when I load the page.
I tried this with no success:
SELECT *
FROM banners
WHERE banner_start_date <= NOW()
AND banner_end_date >= NOW()
I’m using this with PHP.
Thanks in advance!
try