Thanks that works and it was so much simpler than what i was trying to do. All I have to do now is work out how to put the query into my search form.
I think i need to set the room type as a variable and get the the form to search on the startdate again as a variable.
Something like $roomtype and $startdate and $endate.
BTW this is the query that I have so far
SELECT *
FROM bookings WHERE bookings.roomtype = 'spring creek' AND startdate NOT BETWEEN '2002-11-23' AND '2002-11-30' LIMIT 0, 30
the date sI entered manually to test the query
Also do you know of a method to stop a user enter a endate that is before the startdate?