I'm making a website for my school and I need help with Mysql result. I need to know when is the gym available for use, ex : its busy from 2009-09-23 until 2009-09-30 and available all other dates, now I wrote a query but it aint workin.
SELECT gym_name from gym, logs WHERE gym.gym_id = logs.logs_id
AND (gym.date_busy_from < '2009-09-23'
OR gym.date_busy_from > '2009-09-23'
AND gym.date_busy_till > '2009-09-30')
Can someone help me I'm stuck for hours, and I can't breach the wall. tnx