SQL statement:
SELECT * FROM table
WHERE eventdate >= DATE(NOW())
AND eventtime > TIME(NOW())
ORDER BY eventdate ASC, eventtime ASC;
The goal is to select the event that is coming up next. It works just fine so long as there are not two events on the same date. For example:
Event 1, 11/17/2016 7:00am
Event 2, 11/17/2016 2:00pm
Event 3, 11/18/2016 9:00am
I want to select event 2 since it is passed 7:00 am on the 17th. The statement above would still select event 1.