Click here to Skip to main content
15,891,888 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone i am working on a project on hotel room booking system now the main problem arise here how can i check if room is booked or not when someone book multiple room, maybe at same time someone other wants to book one of the room.. for ex. one wants room no. 500,501,505 and at same time another want room 505.how to make sure that they don't get same room at a time
any solution for this.

What I have tried:

i have done room availability check..
Posted
Comments
Richard MacCutchan 16-Jun-18 4:03am    
When a room is booked then you update the database to show it is not available for booking. When it is freed then you do the opposite. Reasonably obvious I would have thought.
Member 13876157 18-Jun-18 1:24am    
sql--
where 1=1
and (room = 500 and roomstate = 'not user')
and (room = 501 and roomstate = 'not user')
and (room = 505 and roomstate = 'not user')

return value check.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900