I have been trying something similar with my hotel booking system. Trying to prevent "double bookings".
When booking a room, the start and finish dates cannot overlap already booked dates. Otherwise we get a "double booking".
So, the code I used (which works) modifies the original code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.