I'm writing a simple event php script as an exercise which utilizes the mysql database. I'm trying to list all future festivals by date however it is listing no festivals.
The $nowdate_? variables are today's day, month, and year.
SELECT *
FROM Festivals
WHERE startdate_y <= " . $nowdate_y . "
AND startdate_m >= " . $nowdate_m . "
AND startdate_d > " . $nowdate_d . "
ORDER BY startdate_y asc,startdate_m asc,startdate_d asc
LIMIT 0,15
Am I approaching this incorrectly in the query?
thanks in advance