I\'m trying to write a query that will check today\'s date against my table columns date1 and date2 in mysql/php.. This is what I\'m after:
\'events\' table:
SELECT * FROM events WHERE date1 <= '2012-01-18' AND date2 >= '2012-01-18';
This should get you started. You can use DATE(NOW()) to get today's date if you don't want to hardcode a date.
DATE(NOW())