I am trying to run a query that picks out ads that have a run date between two user inout dates ($start and $end). In preceeding code I take values from two sets of lists to form a date format as such: yyy-mm-dd.
The query runs without any probelem yet no results are returned, any ideas?
SELECT ads.ad_id, ads.type, ads.run_date, papers.paper_name, clients.name, ads.colors, ads.size, ads.description FROM ads, papers, clients WHERE to_days(ads.run_date) > to_days(2003-01-01) AND to_days(ads.run_date) < to_days(2003-06-01) AND ads.client = clients.cid AND papers.paper_id = ads.paper_id