Question) PHP to connect to a pre-created database named "Hotelreserve", and check whether there is a capacity for the nominated room for the check-in date. If there is still capacity, you need to store the registration information in the database. Then, display *The below booking has been successful'" and display the booking details following. otherwise, display "Sorry! There is no available room!" and ask customers to re-enter new information.
I have created html form page with field name Customer name, email, phone, check-in date, room type, number of check in persons and i also validated form using javascript. Now i need help in php and mysql part question as below:
How can i check the availability of room for the check-in date.
Question)
PHP to connect to a pre-created
Step by step
Solved in 2 steps