Hello,
I am working on a home rental booking website, and I am currently working on the check-in/check-out part.
check-in would be the starting date and check-out the ending date.
My 'Calendar' table is setup this way:
propertyID| month | year | days
5641 | 4 | 2010 | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
5641 | 7 | 2010 | FFFFFBBBFFFFFFFFFFFFFFFFFFFFFFF
5641 | 9 | 2010 | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Each F represents 'Free' (availability) and each B represents 'Booked'.
In a nutshell, I need a code that takes the starting date until the ending date, looks in my database if 'B' is present in any of that range.
I am not looking for anyone to write this code for me, I just need some good pointers.
Thanks!
PS: feel free to chime in regarding my calendar database. I am not sure the way I set it up is the most efficient, but it seemed the most logical at the time.