How vaibhavverma9999/hotel-management-system works
This is a PHP/MySQL hotel booking and administration site. The documented customer journey runs from account creation and login through a booking request, administrator decision, payment, and booking history; customers can also cancel requests and extend confirmed stays. Separate admin capabilities manage room inventory, while the public site presents room imagery and rates. The excerpts show direct form routes and database access in several pages; other workflow links are supported by the README, since many handlers were not excerpted.
Main entry points: user_booking_history.php Booking history · bookroom.php Rates and booking form · user_room_status.php Booking status and cancellation · user_payment.php Customer payment
Components 22
Public hotel site
- Hotel landing
index.php - Room gallery
image_gallery.php
Customer booking
- Customer accounts
user_signup.php - Rates and booking form
bookroom.php - Booking request handler
bookroom1.php - Booking status and cancellation
user_room_status.php - Customer payment
user_payment.php - Payment handler
payment.php - Booking history
user_booking_history.php - History details
user_room_history.php
Administration
- Admin accounts
admin_login.php - Review requests
admin_room_status.php - Confirm or remove booking
confirm_room.php - Confirmed bookings
confirmed_bookings.php - Modify stay
admin_modify_room.php - Room inventory
add_room_admin.php - Remove rooms
remove_room_admin.php - Admin booking history
admin_room_history.php
Persistence
- MySQL iwp
Other components
- Visitor
- Customer
- Administrator
Connections 28
- Visitor → Hotel landing: opens
index.php - Hotel landing → Room gallery: offers gallery
image_gallery.php - Visitor → Customer accounts: signs up or in
- Customer → Rates and booking form: selects room
- Rates and booking form → Booking request handler: submits request
bookroom.php - Booking request handler → Review requests: sends request
- Administrator → Admin accounts: signs in
- Review requests → Confirm or remove booking: chooses outcome
admin_room_status.php - Confirm or remove booking → Confirmed bookings: confirms booking
- Customer → Booking status and cancellation: checks status
- Booking status and cancellation → Confirm or remove booking: may cancel request
- Confirmed bookings → Modify stay: offers stay change
confirmed_bookings.php - Customer → Customer payment: pays confirmed stay
- Customer payment → Payment handler: submits payment
user_payment.php - Payment handler → Booking history: records completed stay
- Customer → Booking history: views history
user_booking_history.php - Booking history → History details: requests details
user_booking_history.php - Administrator → Room inventory: adds rooms
- Administrator → Remove rooms: removes rooms
- Administrator → Admin booking history: views history
admin_room_history.php - Rates and booking form → MySQL iwp: reads session
bookroom.php - Booking status and cancellation → MySQL iwp: reads booking data
user_room_status.php - Booking history → MySQL iwp: reads past bookings
user_booking_history.php - Customer payment → MySQL iwp: reads booking data
user_payment.php - Review requests → MySQL iwp: reads requests
admin_room_status.php - Room inventory → MySQL iwp: reads inventory
add_room_admin.php - Remove rooms → MySQL iwp: reads inventory
remove_room_admin.php - Admin booking history → MySQL iwp: reads history
admin_room_history.php