Welcome to the Hotel Room Booking Management System project!
This is a complete web-based application that allows users to book hotel rooms and admins to manage hotel operations like rooms, bookings, users, and more.
- About the Project
- Features
- Technologies Used
- Database Structure
- Installation
- Usage Guide
- Screenshots
This project is a Hotel Management Web Application built using:
- PHP (backend)
- MySQL (database)
- HTML, CSS, JavaScript (frontend)
It allows users to easily find and book available rooms, select service preferences (like breakfast, dinner), and admins to manage all operations from a central dashboard.
- User Registration & Login
- Browse available room types
- Check room availability
- Book rooms online
- Select service preferences (Breakfast, Dinner, Additional Services)
- View and manage their own bookings
- Cancel future bookings
- Edit profile details
- Admin login (basic, session-based)
- View and manage all bookings
- Search users by ID, name, or phone number
- Add offline bookings from the counter (cash payments)
- Quick room availability checker
- View booking service details
- Manage users and booking history
- Admin dashboard with total users, total rooms, total bookings, revenue stats
Technology | Purpose |
---|---|
PHP | Backend Server-side Scripting |
MySQL | Database Storage |
HTML5/CSS3 | Frontend Structure and Styling |
JavaScript | Frontend Interactions |
XAMPP | Local Development Environment |
Main tables:
-
users
(user_id
,name
,email
,password
,phone
,created_at
) -
rooms
(room_id
,room_type
,status
) -
room_types
(room_type
,description
,price_per_night
,image_url
) -
bookings
(booking_id
,user_id
,room_id
,check_in_date
,check_out_date
,total_price
,breakfast
,breakfast_time
,dinner
,dinner_time
,additional_services
,status
,booking_source
,admin_id
,booked_at
) -
payments
(payment_id
,booking_id
,payment_status
,payment_method
,transaction_id
)
✅ Note:
Services like breakfast, dinner, and additional services are stored directly inside the bookings
table.
- Clone or Download the project.
- Place the project folder inside your
htdocs/
if using XAMPP. - Import the provided SQL file into phpMyAdmin.
- Update your database credentials inside
includes/config.php
. - Access it via your browser:
http://localhost/hotel-booking/
- User: Register → Login → Browse Rooms → Check Availability → Book Room → Proceed to Payment
- Admin: Login to Admin Panel → Manage Bookings → Manage Users → Add Offline Bookings
- Services: Select breakfast, dinner, and extra services during booking.
(Add screenshots of the User Home page, Booking page, Admin Dashboard, and Manage Bookings page.)