I have a DB with displayfrom and displayto date fields. I need to return the data if todays date is between the from and to dates, i.e. only when it should be displayed on the website.
Can someone help with the sql, I'm trying to gather something like
select * from mytable where vartodaysdate between displayfrom and displayto
Can someone help with the sql, I'm trying to gather something like
select * from mytable where vartodaysdate between displayfrom and displayto