I have events listed in my MySQL database.
Events have a start_date (date) and end_date (date) fields.
In my application users can click on a specific day using a calendar. So, if they click today they are taken to /events?day=2013-08-08 and all events from that day are shown on the page.
This was working great until I started adding multi day events. Since previously I was just asking MySQL for all events where start_date == the user chose date, I only get events that START on that day, BUT I also want events that may have started before that day but are still going ON that day.
How can I query items like this? All events that either start on this day, or started earlier but havent yet ended by this day.