...but that is what I want!
These are (for simplification purposes, anyway) weekly recurring orders for food.
Mr. Smith wants a box of veg on Mondays. However, he is away between the 5th and 15th of May. Obviously, he does not want vegetables when he is not there.
Mr. Jones, however, will not be going on holiday. He also has a box of veg on a Monday.
Therefore, I have a start date (2008-05-08) and end date (2008-05-15) in my database for (Mr. Smith's) holidays. I want the query to show me records that are NOT BETWEEN these dates. As far as I can tell, 2008-05-08 IS between 2008-05-08 and 2008-05-15, as it is the starting date, and so shouldn't be displayed. (You're saying otherwise - if you'd care to explain, I'm all ears!) However, Mr. Jones' start and end dates will have a value of 0000-00-00. 2008-05-15 is NOT BETWEEN 0000-00-00 and 0000-00-00, so should show up.
The problem is that Mr. Smith's order is still showing up.
That's how I see it, to me my logic is sound. However, I am a relative beginner at PHP, and very new to MySQL, having not needed to bother with SQL commands in Access, hence why I am posting in the Newbies section. If my logic is wrong, fair enough, tell me. However, don't just leave it at that - explain WHY my logic is wrong and HOW to overcome this! I can accept criticism if it is constructive, but if you aren't going to help me overcome the problem, it isn't at all helpful and quite frankly, what exactly did you achieve out of it?