I am in process in creating a form for booking a car from the pool.
Now of course it is not ideal to book the same car between a date/time when it is already booked by somebody else.
The purpose is to avoid double booking!!
Lets take an example:
Now, nobody else should be able to book the same car on the same date/time and between the times.
However, the user can book the same car outside the date/time frame.
What is the best (easiest) way to perform such checkup?