0% found this document useful (0 votes)
21 views25 pages

Dbms Project1

The document presents a project report on the development of a Hotel Management System aimed at modernizing hotel operations through a web-based application utilizing Database Management System (DBMS) principles. It outlines the project's objectives, existing challenges in hotel management, proposed solutions, system requirements, design, and implementation details. The system enhances efficiency by automating room bookings, managing customer data, and providing a centralized dashboard for hotel administrators.

Uploaded by

palrajk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views25 pages

Dbms Project1

The document presents a project report on the development of a Hotel Management System aimed at modernizing hotel operations through a web-based application utilizing Database Management System (DBMS) principles. It outlines the project's objectives, existing challenges in hotel management, proposed solutions, system requirements, design, and implementation details. The system enhances efficiency by automating room bookings, managing customer data, and providing a centralized dashboard for hotel administrators.

Uploaded by

palrajk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

THE HOTEL MANAGEMENT SYSTEM

AMINIPROJECTREPORT

Submitted by

ALAGU SURYA S (953623205003)

HARI PRAKASH P (953623205017)

In partial fulfilment for the award of the degree of

BACHELOROFTECHNOLOGY

RAMCO INSTITUTE OF TECHNOLOGY

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.

Place: Rajapalayam Alagu Surya S


Hari Prakash
Date:/ /2025.

DEPARTMENT OF INFORMATION TECHNOLOGY

RAMCO INSTITUTE OF TECHNOLOGY

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 convey my heartfelt thanks to my project supervisor, Mrs. A. Alagulakshmi, B.Tech.,


M.E.,Assistant Professor, Department of Information Technology, for her continuous guidance and
support throughout the project 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

In today’s digital era, the hospitality industry is increasingly adopting technology to


enhance customer satisfaction and streamline operations. One vital advancement is the use of
database-driven systems, which help manage hotel processes like room bookings, customer
records, and room availability with greater efficiency.
This project presents the development of a Hotel Management System, a web-based
application designed using core Database Management System (DBMS) principles. It
addresses issues in traditional hotel operations such as double bookings, manual data entry,
and service delays.
Customers can easily browse available rooms, select room types, and book their stay
online. For hotel administrators, the system provides a secure login to manage reservations,
view occupancy, and handle customer details via a centralized dashboard. A structured
relational database ensures data integrity, supports CRUD operations, and maintains
consistency through normalization and foreign key constraints.
In essence, this project showcases how DBMS technologies can modernize hotel
services, improve efficiency, and meet the growing expectations of both guests and staff.
1.1 PROJECT DESCRIPTION
This project involves the development of a Hotel Management System, a web-based
application designed to simplify and automate hotel operations using Database Management
System (DBMS) principles.
The system allows customers to view available rooms, choose room types, and book
their stay online. It helps avoid issues like double bookings and reduces the need for manual
data entry.
Hotel administrators can securely log in to manage bookings, check room occupancy,
and update customer information through a centralized dashboard.
The system uses a relational database to store and manage data efficiently. It
supports CRUD operations (Create, Read, Update, Delete), ensures data accuracy through
normalization, and maintains relationships between data using foreign keys.

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.

1.4 LITERATURE REVIEW


Several studies and existing systems highlight the importance of automation and database
management in the hospitality industry. Traditional hotel management methods involve
manual record-keeping, which is time-consuming, error-prone, and inefficient when
dealing with large volumes of data.
Research shows that using a Database Management System (DBMS) in hotel applications
improves data accuracy, supports real-time updates, and enables centralized control of
hotel operations. Web-based hotel systems also enhance customer convenience, allowing
online bookings and faster check-in/check-out processes.

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

3.1 PROPOSED SYSTEM – MODULES OF THE SYSTEM

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

4.1 Sample Code:


dashboard.php:
<?php
session_start();
if (!isset($_SESSION['admin'])) {
header("Location: ../login.php");
exit();
}
include '../includes/header.php';
include '../config/db.php';

$result = $conn->query("SELECT * FROM bookings");


?>
<h2>Admin Dashboard</h2>
<p><a href="../logout.php">Logout</a></p>
<table border="1" cellpadding="10">
<tr>
<th>ID</th><th>Name</th><th>Room
Type</th><th>Check-In</th><th>Check-Out</th>
</tr>
<?php while($row = $result->fetch_assoc()): ?>
<tr>
<td><?= $row['id'] ?></td>
<td><?= $row['name'] ?></td>
<td><?= $row['room_type'] ?></td>
<td><?= $row['checkin'] ?></td>
<td><?= $row['checkout'] ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php include '../includes/footer.php'; ?>
db.php:
15
<?php
$conn = new mysqli("localhost", "root", "", "hotel");

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>&copy; <?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'];

$sql = "INSERT INTO bookings (name, room_type, checkin, checkout)


VALUES ('$name', '$room', '$checkin', '$checkout')";
if ($conn->query($sql)) {
echo "<p>Booking successful!</p>";
} else {
echo "<p>Error: " . $conn->error . "</p>";
}
}
?>
<h2>Book a Room</h2>
<form method="post">
<input type="text" name="name" placeholder="Your Name" required><br>
<select name="room_type">
<option value="Single">Single</option>
<option value="Double">Double</option>
<option value="Suite">Suite</option>
</select><br>
<input type="date" name="checkin" required><br>
<input type="date" name="checkout" required><br>
<input type="submit" value="Book Now">
</form>
<?php include 'includes/footer.php'; ?>
bookings.php:
<?php
session_start();
include 'config/db.php';
include 'includes/header.php';

// Fetching all bookings from the database


$sql = "SELECT * FROM bookings";
18
$result = $conn->query($sql);

?>

<h2>All Bookings</h2>

<!-- Check if there are any bookings -->


<?php if ($result->num_rows > 0): ?>
<table border="1" cellpadding="10">
<tr>
<th>ID</th>
<th>Name</th>
<th>Room Type</th>
<th>Check-In Date</th>
<th>Check-Out Date</th>
</tr>

<!-- Display all bookings -->


<?php while($row = $result->fetch_assoc()): ?>
<tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['room_type']; ?></td>
<td><?php echo $row['checkin']; ?></td>
<td><?php echo $row['checkout']; ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php else: ?>
<p>No bookings found.</p>
<?php endif; ?>

<?php include 'includes/footer.php'; ?>


database.sql:
19
CREATE DATABASE hotel;

USE hotel;

CREATE TABLE bookings (


id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
room_type VARCHAR(50),
checkin DATE,
checkout DATE
);
index.php:
<?php include 'includes/header.php'; ?>
<h2>Welcome to Our Hotel</h2>
<p><a href="book.php">Book a Room</a> | <a href="login.php">Admin Login</a></p>
<?php include 'includes/footer.php'; ?>
login.php:
<?php include 'includes/header.php'; ?>
<?php
session_start();
include 'config/db.php';

if ($_SERVER["REQUEST_METHOD"] == "POST") {
$user = $_POST['username'];
$pass = $_POST['password'];

if ($user === 'admin' && $pass === 'admin123') {


$_SESSION['admin'] = true;
header("Location: admin/dashboard.php");
exit();
} else {
echo "<p>Invalid login details</p>";
}
20
}
?>
<h2>Admin Login</h2>
<form method="post">
<input type="text" name="username" placeholder="Username" required><br>
<input type="password" name="password" placeholder="Password" required><br>
<input type="submit" value="Login">
</form>
<?php include 'includes/footer.php'; ?>
logout.php:
<?php
session_start();
session_destroy();
header("Location: index.php");
exit();

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

You might also like