Dbms Project1
Dbms Project1
AMINIPROJECTREPORT
Submitted by
BACHELOROFTECHNOLOGY
DEPARTMENTOFINFORMATIONTECHNOLOGY
RAJAPALAYAM-626 117
ANNAUNIVERSITY:CHENNAI600025
APRIL2025
ANNAUNIVERSITY,CHENNAI
BONAFIEDCERTIFICATE
1
Certified that this Report titled “Hotel Management System” is the bonafide work of Alagu Surya
S(953623205003) and Hari Prakash(953623205017), who carried out the project work under my
supervision. Certified further that to the best of my knowledge, the work reported herein does not form
part of any other thesis or dissertation on the basis of which a degree or award was conferred on an
earlier occasion on this or any other candidate.
SIGNATURE SIGNATURE
Mrs. A. Alagulakshmi Dr. V. Anusuya
SUPERVISOR HEADOFTHEDEPARTMENT
Assistant Professor, Associate Professor,
Department of Information Technology, Department of Information Technology,
Ramco Institute of Technology Ramco Institute of Technology
Rajapalayam-626117. Rajapalayam-626117.
DECLARATION
2
We hereby declare that the project work entitled “Hotel Management System” has been submitted by
us, Alagu Surya S and Hari Prakash, in partial fulfillment of the requirements for the award of the
degree of Bachelor of Technology – Information Technology. We further declare that the contents,
statements, and other relevant matters are true to the best of our knowledge and belief.
RAJAPALAYM-626117.
3
ACKNOWLEDGEMENT
First and foremost, I express my utmost gratitude to our Chairman, Shri. P. R. Venketrama
Raja, B.E., MBA., for his remarkable support and encouragement toward the improvement of the
college.
I extend my sincere thanks to our respected Principal In-charge, Dr. L. Ganesan, M.E., Ph.D.,
for the support rendered toward my project work.
I am deeply grateful to our Vice Principal, Dr. S. Rajakarunakaran, M.E., Ph.D., for his
valuable support in the successful completion of my project. I am also indebted to Dr. V. Anusuya,
M.E., Ph.D., Associate Professor and Head, Department of Information Technology, for providing the
necessary lab facilities to complete my work.
I am very much thankful to all the staff members of the Department of Information Technology
for the various ways in which they supported me during the completion of my project.
Last but not least, I extend my sincere thanks to my friends and family members for their
unwavering support and encouragement throughout my project journey.
Signature
Abstract:
4
The Hotel Management System project is a comprehensive, database-driven solution aimed at
modernizing the operations of hotel booking and administration. It leverages the power of a relational
Database Management System (DBMS) to efficiently manage critical hotel processes such as room
reservations, customer records, and room availability, thereby reducing the dependency on traditional,
manual methods that are prone to errors and inefficiencies. The system is designed with two primary
interfaces: one for customers and another for hotel administrators. The customer interface allows users
to browse available rooms, select room types (e.g., Single, Double), and specify check-in and check-
out dates through an intuitive web-based platform. Upon confirmation, the system records the
reservation details in the database, automatically updating room availability to prevent overlapping or
double bookings. On the administrative end, the system includes a secure login feature that grants
access to a backend dashboard. This dashboard enables hotel staff to view and manage customer
bookings, monitor room occupancy, and review reservation histories. It enhances transparency and
provides quick access to vital information, which helps staff make informed decisions in real-time.
The backend architecture of the system is powered by a structured relational database that employs key
DBMS concepts such as data normalization, foreign key constraints, indexing, and structured queries.
This ensures data consistency, minimizes redundancy, and provides reliable data retrieval and
manipulation capabilities. The system supports basic CRUD (Create, Read, Update, Delete) operations
for efficient data management. In summary, this project not only demonstrates the practical application
of database technologies in the hospitality domain but also showcases how digital tools can
significantly optimize operational workflows. The Hotel Management System serves as a scalable and
robust platform for managing hotel services, improving customer satisfaction, and enhancing staff
productivity.
TABLE OF CONTENTS
5
Chapter No. Contents Page No
7
1 Introduction
7
1.1 Problem Definition
8
1.2 Existing System
8
1.3 Proposed System
9
1.4 Literature Review
9
2 System Requirements
9
2.1 Hardware & Software Requirements
10
2.2 Software Requirements Specification (SRS)
11
3 System Design
11
3.1 Proposed System-Modules of System
13
3.2 Flow diagram of Proposed system
15
4 Implementation
16
4.1 Sample Code
25
5 Experimental Results
25
5.1 Output Screens
28
6 Conclusion
29
References
6
1.INTRODUCTION
7
1.2 EXISTING SYSTEM
In the existing system, most hotel operations are done manually or through basic software.
Room bookings, customer details, and availability are often recorded in registers or
spreadsheets, which can lead to problems like:
Double bookings
Manual errors in data entry
Difficulty in tracking room availability
Time-consuming check-in and check-out processes
There is no centralized database, so information is not updated in real-time, and staff may
need to repeatedly check or update data. This makes hotel operations less efficient and affects
the overall customer experience.
1.3 PROPOSED SYSTEM
The proposed system is a web-based Hotel Management System that automates hotel
operations using a centralized database.
Customers can:
View available rooms
Select room types
Book rooms online
Hotel administrators can:
Log in securely
Manage reservations
Track room availability
Access customer details easily
The system uses DBMS principles to ensure data is accurate, consistent, and easy to update
using CRUD operations. It reduces manual work, avoids double bookings, and improves both
staff efficiency and customer satisfaction.
8
Many existing hotel systems use technologies like MySQL, PHP, and JavaScript to build
functional interfaces and connect with relational databases. Studies also emphasize the
importance of normalization, foreign keys, and secure login systems to maintain data
integrity and protect customer information.
Overall, the literature suggests that implementing a web-based, database-driven hotel
management system leads to better customer satisfaction, reduced operational costs, and
more efficient hotel services.
2. SYSTEM REQUIREMENTS
2.1 HARDWARE & SOFTWARE REQUIREMENTS
HARDWARE REQUIREMENTS
Processor: Intel Core i3 or higher
RAM: Minimum 4 GB
Hard Disk: Minimum 250 GB
Monitor: 15” or above
Keyboard and Mouse
Internet Connection: Required for web access
SOFTWARE REQUIREMENTS
Frontend: HTML, CSS, JavaScript
Backend: PHP / Node.js / Python (based on implementation)
Database: MySQL / PostgreSQL
Web Server: Apache / Nginx
Operating System: Windows / Linux
Browser: Google Chrome / Mozilla Firefox
Code Editor: Visual Studio Code / Sublime Text / any I
2.2 SOFTWARE REQUIREMENTS SPECIFICATION (SRS)
1. INTRODUCTION PURPOSE:
The Hotel Management System is a web-based application designed to simplify and automate
hotel operations such as room booking, customer data handling, and room availability
tracking using DBMS principles.
9
2. FUNCTIONAL REQUIREMENT
Customers can view available rooms.
Customers can register, log in, and book rooms online.
Admins can log in securely.
Admins can add, update, and delete room details.
Admins can manage customer bookings.
The system supports CRUD operations for all data.
3. NON-FUNCTIONAL REQUIREMENTS
The system must be user-friendly and responsive.
It should be secure with proper authentication.
It must support multiple users at the same time.
Data should be stored and managed efficiently using a relational database.
The system should be available 24/7.
4. USER INTERFACE REQUIREMENTS
Simple and clean web interface.
Login and registration pages for users and admins.
Dashboard for admin to manage bookings and room details.
Booking form for customers.
5. DATABASE REQUIREMENTS
Relational database (e.g., MySQL) with normalized tables.
Tables for Users, Rooms, Bookings, and Admins.
Use of primary keys and foreign key relationships.
Support for data consistency and integrity.
3. SYSTEM DESIGN
1. USER MODULE
10
Allows customers to register and log in.
Enables users to search for available rooms.
Provides booking functionality with selection of room type and check-in/check-out
dates.
Allows users to view and manage their booking history.
2. ADMIN MODULE
Secure login for hotel staff.
View, add, update, and delete room information.
Manage customer bookings and view user details.
Monitor room availability and booking status in real-time.
3. ROOM MANAGEMENT MODULE
Handles the addition and update of room types, prices, and features.
Tracks the availability of rooms (booked/vacant).
Links room data with the booking module.
4. BOOKING MODULE
Checks room availability based on user input.
Confirms bookings and generates a booking ID.
Stores booking details in the database.
Updates room status automatically upon successful booking.
5. DATABASE MODULE
Manages all data storage operations using a relational database (e.g., MySQL).
Ensures data integrity using primary and foreign keys.
Supports CRUD operations for all entities like users, rooms, and bookings.
Implements normalization for efficient and consistent data handling.
11
3.2 FLOW DIAGRAM OF PROPOSED SYSTEM:
12
FLOW DIAGRAM OF PROPOSED SYSTEM
Flowchart Explanation - The Hotel Management System
1. Start
The process begins when a user (customer) initiates the hotel booking system.
2. Login
The user is prompted to log in using their credentials. This step ensures that only
registered users can access booking services.
3. Search
After logging in, the user searches for available rooms based on preferences like date,
room type, etc.
4. Check If Available Room (Decision Point)
o The system checks the database for room availability based on the user's
search criteria.
o If a room is available, the flow proceeds to the Confirm Booking step.
o If no room is available, the flow returns to the Search step, allowing the user
to try different dates or options.
5. Confirm Booking
The user confirms the selected room for booking.
6. Store Information
The booking details (user info, room info, dates, etc.) are stored in the database.
7. Process
Final processing is done, such as updating room status, sending confirmation emails,
or generating receipts.
8. End
The booking process is complete.
4. IMPLEMENTATION
The implementation phase involves converting the design into a working software system.
The Hotel Management System was developed as a web-based application using modern
13
development tools and technologies, following the principles of modularity, security, and
scalability.
Frontend Implementation
Developed using HTML, CSS, and JavaScript for building responsive and user-
friendly web pages.
Pages include:
o Login/Register Page – For user authentication
o Room Search Page – To view and filter available rooms
o Booking Page – To enter booking details and confirm reservation
o Admin Dashboard – To manage room data, customer records, and
reservations
Backend Implementation
Developed using PHP / Node.js / Python (based on chosen stack).
Handles the core application logic such as:
o Authenticating users
o Handling bookings
o Communicating with the database
o Validating input and controlling flow of data
Database Implementation
A MySQL (or equivalent RDBMS) database was used.
Key tables:
o Users – Stores login and profile data
o Rooms – Contains room types, status, and pricing
o Bookings – Stores booking information
o Admins – For authorized hotel staff access
Relationships between tables were maintained using primary and foreign keys.
Key Features Implemented
Secure login for customers and admins
Room availability check and search
Online booking system
Admin management tools for room and booking records
Booking confirmation and data storage
14
Input validations and session handling
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
style.css:
body {
font-family: Arial, sans-serif;
background: #f2f2f2;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: auto;
padding: 20px;
}
header, footer {
background: #333;
color: white;
padding: 10px 0;
text-align: center;
}
a{
text-decoration: none;
color: #007bff;
}
form {
16
margin-top: 20px;
}
input, select {
padding: 10px;
margin: 5px 0;
width: 100%;
}
footer.php:
</div>
<footer>
<p>© <?php echo date("Y"); ?> Hotel Management</p>
</footer>
</body>
</html>
header.php:
<!DOCTYPE html>
<html>
<head>
<title>Hotel Management</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>Hotel Management System</h1>
</header>
<div class="container">
book.php:
<?php include 'includes/header.php'; ?>
<?php
include 'config/db.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST['name'];
17
$room = $_POST['room_type'];
$checkin = $_POST['checkin'];
$checkout = $_POST['checkout'];
?>
<h2>All Bookings</h2>
USE hotel;
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$user = $_POST['username'];
$pass = $_POST['password'];
21
5. Experimental Results
22
23
24
6. CONCLUSION
The Hotel Management System project effectively demonstrates the application of
Database Management System (DBMS) principles in solving real-world challenges
within the hospitality industry. By automating the core functions of room booking,
customer management, and administrative oversight, the system significantly
enhances efficiency, reduces human error, and improves the overall guest experience.
Through the development of this project, key concepts such as data normalization,
relational table design, and CRUD operations have been successfully implemented.
The use of a relational database ensures data consistency, integrity, and quick access
to vital information. Additionally, the project promotes digital transformation by
replacing outdated manual methods with a streamlined, user-friendly digital platform.
The system is scalable, making it suitable for small hotels as well as larger hospitality
chains with minor modifications. It provides a foundation for future enhancements
such as online payments, mobile app integration, and advanced analytics.
In conclusion, this project not only fulfills the academic objectives related to database
design and web development but also presents a practical, real-time solution that can
be deployed in a real business environment. It exemplifies how technology can be
harnessed to simplify operations and elevate service delivery in the hospitality sector.
25