Hi again,
I've been trying:
SELECT * FROM `event_eve` WHERE `datestart_eve` BETWEEN `datestart_eve` AND `dateend_eve`
and
SELECT * FROM `event_eve` WHERE `datestart_eve` <= `dateend_eve` && `datestart_eve` >= `datestart_eve`
Both seem to act about the same. And neither is selecting from the same row. Thus, every row is returned.
I've also been trying to put some sort of check unique key trigger in my php code, but I can't get anything to recognize a single row as an event (and therefore an 'occupied' time), rather than take the latest enddate and the earliest startdate and have the entirety of the range 'occupied.'
I know I'm just missing something silly. There has got to be something I can do to do a conditional check.
Thanks for your time,
Willie