Jump to content

Archived

This topic is now archived and is closed to further replies.

puja

php booking and concurrent user help

Recommended Posts

Hi
I am tring to do a booking system for holiday accommodation and im struggling with getting the bookings to work.
I was thinking of doing a drop down box with the available dates for each type of accommodation and letting the customer choose from there once they have specified the type of accommodation they want.
Im not sure how to go about it though.
the first page i have would have the customer searching for the type of accommodation they need i.e. type, number of people and the results of that will be shown with the available dates for the results.
once i have got the bookings to work i also need to ensure that two people cant book the same accommodation for the same date at the same time.
To solve this i was going to have a flag field which will change to 1 once someone has chosen the booking and then be checked again when they try to confirm the booking.
Only if the flag is 0 they will be able to confirm it.
Im not even sure if that makes sense.
Any suggestions will be appreciated.
Thank You

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.