Mahati Dbms FINAL
Mahati Dbms FINAL
Bachelor of Engineering
In
Computer Science & Engineering
By
MAHATI SHITOLE
(3GN21AI050)
ADITYA NAVAKHANDE
(3GN21AI030)
SNEHAL TORNALKER
(3GN21AI053)
UDAYKIRAN BAWAGE
(3GN21AI057)
Mrs. Netrawati S.
Asst Professor, Dept. of AIML
CERTIFICATE
This is to certify that the Database Management System Project work entitled Hotel
Management Database System has been carried out by Mahati Shitole (3GN21AI050),
Snehal Tornalker (3GN21AI053) , Udaykiran Bawage (3GN21AI057) and Aditya
Navakhande (3GN21AI030) bonafide students of Guru Nanak Dev Engineering College,
Bidar in partial fulfillment for the award of Bachelor of Engineering in Artificial
Intelligence and Machine Learning Engineering of the Visvesvaraya Technological
University, Belgaum during the year 2024-2025. It is certified that all corrections/suggestions
indicated for Internal Assessment have been incorporated in the Report deposited in the
departmental library. This DBMS Project Report has been approved as it satisfies the
academic requirements in respect of project work prescribed for the said degree.
----------------- -------------------
Signature of Guide Signature of HOD
External Viva
Name of the examiners Signature with date
1.
2.
lOMoARcPSD|28011495
ABSTRACT
A hotel management system is a software application designed to manage and organize all
aspects of a hotel's operations. It is an essential tool for any hotel that wants to streamline its daily
tasks and improve its overall efficiency. The hotel management system comprises various modules
that help in managing different hotel activities, such as front desk operations, housekeeping,
accounting, and inventory management. The system allows hotel staff to manage guest reservations,
check-ins and check-outs, room allocation, and billing, all from a centralized location. This system
also helps to track the occupancy rate and revenue generated by each room in the hotel. The system
also assists in managing housekeeping operations, such as room cleaning schedules, laundry
management, and maintaining the inventory of toiletries and amenities. The system enables staff to
check the availability of rooms and plan cleaning schedules accordingly. Moreover, the system
includes accounting modules that enable hotels to keep track of expenses, revenue, and other
financial data. This module automates the billing process and generates invoices for services offered
to guests. It also generates financial reports that help hotel management in making informed
decisions. The hotel management system also helps manage inventory by keeping track of stock
levels, ordering and restocking supplies, and reducing wastage. The system also enables staff to
monitor the consumption of supplies and plan accordingly to prevent shortages. In conclusion, the
hotel management system is essential to manage their operations efficiently. It streamlines various
activities and helps in providing guests with a seamless experience. By automating repetitive tasks,
the system enables staff to focus on delivering excellent customer service and enhancing guest
satisfaction.
lOMoARcPSD|28011495
ACKNOWLEDGEMENT
It gives us a great sense of pleasure to present the report of the B.E Mini Project
undertaken during 5th Semester . We owe a special debt of gratitude to Dr. Dayanand J,
Head of Department of Artificial Intelligence and Machine Learning Engineering ,
Guru Nanak Dev Engineering College, Bidar for his constant support and guidance
throughout the course of our work. His sincerity, thoroughness and perseverance have
been a constant source of inspiration for us. It is only his cognizant efforts that our
endeavors have seen light of day. We also take the opportunity to acknowledge the
contribution of Mrs. Netrawati S. of Department of Artificial Intelligence and Machine
Learning Engineering, Guru Nanak Dev Engineering College, Bidar for her full support
and assistance during the development of the project. We also do not like to miss the
opportunity to acknowledge the contribution of all faculty members of the department for
their kind assistance and cooperation during the development of our project. And at last
but not the least, we acknowledge our friends for their contribution in the completion of
the project.
With Regards,
Mahati Shitole
Snehal Tornalker
Udaykiran Bawage
Aditya Navakhande
lOMoARcPSD|28011495
TABLE OF CONTENTS
ABSTRACT I
ACKNOWLEDGEMENT II
Chapter 1: INTRODUCTION
1.1 INTRODUCTION...................................................................................................... 2
1.2.....................................................................................PROBLEM STATEMENT 2
1.3.....................................................................................................OBJECTIVES 3
Chapter 3: DESIGN
3.1ENTITY-RELATIONSHIP DIAGRAM............................................................................10
3.2SCHEMA DRAIGRAM................................................................................................ 11
CHAPTER 4: IMPLEMENTATIONS
5.1 CONCLUSION.......................................................................................................... 24
5.2 FUTURE ENHANCEMENT........................................................................................24
5.3 BIBLIOGRAPHY....................................................................................................... 25
lOMoARcPSD|28011495
Chapter 1
1.1 INTRODUCTION
The hotel industry is one of the most significant contributors to the global economy. As the
industry grows, hotels are facing increasing pressure to streamline their operations and provide
exceptional guest experiences. One way to achieve this is by implementing a hotel management
system, which can help hotels automate their day-to-day tasks, manage their operations efficiently,
and improve customer service.
A Front desk clerk checks in a customer with only a prior reservation, changes the checkout
date, and checks out the customer. A room is assigned to the customer at check-in time and a
customer billing record is created at that time. The customer billing record is updated every night at
12. When a customer checks out, the desk clerk prints the bill. A customer can pay by cash, check,
or credit card when he/she checks out.
lOMoARcPSD|28011495
1.3 OBJECTIVES
The main objective of this project is to ensure reliable and efficient communication within
the hotel and avoid common input errors done by hotel staff.
This project also aims for fast and easy retrieval of hotel guest records for faster reference
activities.
Third main important objective of the Hotel management system project is to enforce
security measures to avoid unauthorized access to the customer record.
Track guests based on their name, address, city and Track bookings based on dates, booking
type, and room count. Designate Room Types with a standard rate, room description.
It will be able to take care of services to customers in a quick manner. This automation will
be able to replace the drawbacks of large customer information physical files which were difficult
to handle. Secure Transaction, quick retrieval of information, ease of use, quick recovery of errors,
fault tolerance are some of the benefits that the development team will be working on to achieve
end user satisfaction.
2. FRONT DESK MANAGEMENT: The front desk management application helps hotel staff
manage guest check-ins and check-outs. It provides real-time access to guest information, room
availability, and room status, enabling staff to provide efficient and prompt service.
3. HOUSEKEEPING
MANAGEMENT : The
housekeeping management
application helps
staff schedule and manage
room cleaning, track the
availability of cleaning
supplies and
amenities, and manage laundry
services.
4. BILLING AND
ACCOUNTING : The billing
and accounting application
automates the
lOMoARcPSD|28011495
information, a hotel
management system can
improve the efficiency and
effectiveness of hotel
operations
3. HOUSEKEEPING
MANAGEMENT : The
housekeeping management
application helps
staff schedule and manage
room cleaning, track the
availability of cleaning
supplies and
amenities, and manage laundry
services.
4. BILLING AND
ACCOUNTING : The billing
lOMoARcPSD|28011495
4. BILLING AND ACCOUNTING : The billing and accounting application automates the billing process
and generates invoices for services offered to guests. It also generates financial reports, helping hotel
management make informed decisions about revenue and expenses.
5. MARKETING AND GUEST MANAGEMENT : The marketing and guest management application
enables hotels to track guest preferences and create targeted marketing campaigns to attract and retain
customers. It also provides guest feedback and reviews to help hotels improve their services.
In conclusion, a hotel management system provides a variety of applications that can help hotels
streamline their operations, improve customer service, and stay competitive in a rapidly evolving industry.
By automating repetitive tasks and providing real-time access to critical information, a hotel management
system can improve the efficiency and effectiveness of hotel operations.
lOMoARcPSD|28011495
Chapter 2
SYSTEM REQUIREMENTS
To demonstrate and work with this project there few hardware and software requirements
that are to be satisfied To work with any storage system we need a database installed into our
system and as this project is made as an stand alone application any frontend tool can be used to
design and develop it .The major Hardware and Software requirements are listed below.
1. CLIENT SIDE:
Web Browser - - - Google Chrome or any compatible browser
Operating System - - - Windows or any equivalent OS
2. SERVER SIDE:
Web Server - - - APACHE
Server side Language - - - PHP5.6 or above version
Database Server - - - MYSQL
Web Browser - - - Google Chrome or any compatible browser
Operating System- - - Windows or any equivalent OS
lOMoARcPSD|28011495
Chapter 3
DESIGN
3.1 Entity-Relationship Diagram (ERD): Behind the scenes of a bustling hotel lies a
meticulously crafted database system. The ERD for a hotel management system visually represents
the relationships between entities such as hotels, rooms, visitors, bookings, staff, and payments.
Here are the key components:
o Entities:
Hotel: Represents individual hotels in the system.
Room: Represents different types of rooms available (e.g., single, double,
suite).
Room Type: Describes room characteristics (e.g., capacity, amenities).
Guest: Stores information about hotel guests.
Booking: Records reservations made by guests.
Staff: Manages hotel operations (e.g., receptionists, housekeeping).
Payment: Tracks financial transactions related to bookings.
o Attributes:
Hotel: Attributes may include hotel_id, name, location, and rating.
Room: Attributes could be room_id, room_number, room_type_id, and
availability.
Room Type: Attributes might include room_type_id, capacity, and
amenities.
Guest: Attributes could be guest_id, name, contact_info, and loyalty_points.
Booking: Attributes may include booking_id, check-in_date, check-out_date,
and total_cost.
Staff: Attributes might include staff_id, name, role, and shift.
Payment: Attributes could be payment_id, amount, and payment_date.
o Relationships:
Guest-Booking: One guest can have multiple bookings (one-to-many).
Room-Booking: Each booking corresponds to a specific room (many-to-
one).
Hotel-Room: Each hotel has multiple rooms (one-to-many).
Staff-Hotel: Staff members work at specific hotels (many-to-one).
Booking-Payment: Each booking involves a payment (one-to-one).
3.2 Diagrams: The schema diagram for a hotel management system defines the structured
data groups and their relationships. It encompasses tables like rooms, payments, hotels, and
customers. Structured data elements interconnect, orchestrating check-in/check-out procedures,
room reservations, and financial transaction.
lOMoARcPSD|28011495
Chapter 4
IMPLEMENTATION
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=\, initial-scale=1.0">
<title>Hotel Management Sysytem</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-
Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="customer.css">
</head>
<body >
<!-- Navigation bar top -->
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark ">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-
controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<a class="navbar-brand" href="#">Hotel Management System</a>
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#room">Rooms</a>
</li>
<li class="nav-item">
<a class="nav-link " href="#about">About</a>
</li>
</ul>
</div>
</nav>
<!-- Background Image -->
<section >
<img id="background" src="Images/background.jpg" alt="">
</section>
<!-- Text -->
<section id="text">
<p class="text-1">Welcome to 5 ⭐ Hotel</p>
<p class="text-2">A Best Place To Stay</p>
</section>
<!-- Check Avability -->
<form action="customer.php" method="POST">
<div class="container check">
<span class="date">Check-in Date</span>
<input class="date-1" type="date" name="check-in-date" id="">
<span class="date">check-out Date</span>
<input class="date-1" type="date" name="check-out-date" id="">
<button class="check-button" type="submit" name="available_room">Check Avability</button>
</form>
</div>
<div class="container">
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "hotel-mangement-system";
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if(isset($_POST['available_room'])){
$date = strtotime($_POST['check-in-date']);
lOMoARcPSD|28011495
<tbody>
<?php while ($r = $result->fetch_array()): ?>
<tr>
<th scope="row"><?php echo $r['room_no'] ?></th>
<td><?php echo $r['floor_no'] ?></td>
<td><?php echo $r['room_name'] ?></td>
<td><?php echo $r['no_of_single_bed'] ?></td>
<td><?php echo $r['no_of_double_bed'] ?></td>
<td><?php echo $r['no_of_accomodate'] ?></td>
<td><?php echo $r['features'] ?></td>
<td><?php echo $r['amount'] ?></td>
</tr>
<?php endwhile;
?>
</tbody>
</table>
<?php
}
else{
echo "<script> alert('$conn->error'); </script>";
}} $conn->close();?>
</div>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "hotel-mangement-system";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$row = $result->fetch_assoc();
?>
<!-- Booking Room -->
<form action="customer.php" method="post">
<div class="container" id="room">
<div class="row">
<div class="col-sm">
<img class="room-image" src="Images/deluxe-1_1920x960.jpg" alt="">
lOMoARcPSD|28011495
$row = $result->fetch_assoc();
?>
<div class="container">
<div class="row">
<div class="col-sm">
<img class="room-image" src="Images/super_deluxe-2_1920x960.jpg" alt="">
</div>
<div class="col-sm">
<p class="price"><?php echo $row["amount"] ?>/- Per Day</p>
<p class="text"><?php echo $row["room_name"] ?> Room</p>
<?php $conn->close(); ?>
<button onclick="location.href='register.php'" type="button" class="book-button">Book Now</button>
</div>
</div>
</div>
<?php
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$var=333;
$sql = "CALL room_info($var)";
$result = $conn->query($sql);
$row = $result->fetch_assoc();
?>
<div class="container">
<div class="row">
<div class="col-sm">
<img class="room-image" src="Images/luxury.jpg" alt="">
</div>
<div class="col-sm">
<p class="price"><?php echo $row["amount"] ?>/- Per Day</p>
<p class="text"><?php echo $row["room_name"] ?> Room</p>
<?php ?>
<button onclick="location.href='register.php'" type="button" class="book-button">Book Now</button>
</div>
</div>
</div>
lOMoARcPSD|28011495
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-
ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-
JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>
lOMoARcPSD|28011495
4.3 SQL
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 13, 2021 at 04:18 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
--
-- Database: `hotel-mangement-system`
--
DELIMITER $$
--
-- Procedures
--
CREATE DEFINER=`root`@`localhost` PROCEDURE `available_room` (IN `date_in` VARCHAR(45), IN `date_out`
VARCHAR(45)) BEGIN
DECLARE msg varchar(128);
IF(date_in<CURRENT_DATE) THEN
set msg = 'Enter valid check in date.' ;
signal sqlstate '45001' set message_text = msg;
ELSEIF(date_out<=date_in) THEN
set msg = 'Enter valid check out date.' ;
signal sqlstate '45001' set message_text = msg;
ELSE
SELECT
room.room_no,room.floor_no,room_type.room_name,room_type.no_of_single_bed,room_type.no_of_double_bed,room_type.no_of
_accomodate,room.features,room.amount FROM room,room_type where room.room_no IN (SELECT room_status.room_no FROM
room_status WHERE room_status.check_out IS NULL OR room_status.check_out<date_in ) AND
room.room_code=room_type.room_code ;
END IF;
END$$
SELECT room_booked.room_no,room_booked.check_in,room_booked.check_out,room_booked.total_days,room.
CREATE DEFINER=`root`@`localhost` PROCEDURE `update_room_price` (IN `roomno` INT, IN `price` INT) BEGIN
DECLARE msg varchar(128);
IF(price<=0) THEN
set msg = 'Price should be greater than 0.' ;
signal sqlstate '45001' set message_text = msg;
ELSEIF(roomno NOT IN (SELECT room.room_no FROM room)) THEN
set msg = 'Room does not exist.' ;
signal sqlstate '45001' set message_text = msg;
ELSE
UPDATE room SET room.amount=price WHERE room.room_no=roomno;
END IF;
END$$
DELIMITER ;
lOMoARcPSD|28011495
Chapter 5
5.1 CONCLUSION
In conclusion, the hotel management system we have developed provides a comprehensive
solution to the various challenges faced by hotels in managing their day-to-day operations. The
system's robust features, such as its automated billing and payment processing, help hotels improve
their operational efficiency and reduce the likelihood of errors. Overall, we believe that our hotel
management system will help hotels provide a superior guest experience, leading to increased guest
satisfaction and loyalty. Our hotel management system has been designed to meet the unique needs
of today's hospitality industry, which requires efficient and streamlined processes to remain
competitive. With this system, hotel managers can easily track and manage their hotel's
performance, from room occupancy rates to revenue generation. We are confident that our hotel
management system will prove to be a valuable asset to hotels of all sizes. The hotel management
system we have developed offers a user-friendly interface that enables hotel staff to easily manage
all aspects of their operations. Our system simplifies the work of hotel staff, freeing up their time to
focus on providing exceptional service to guests. Moreover, our system's analytics and reporting
features provide hotel managers with valuable insights into their hotel's performance, enabling them
to make data-driven decisions that can positively impact their business. Overall, we believe that our
hotel management system will help hotels achieve operational excellence and deliver exceptional
guest experiences.
5.3 BIBLIOGRAPHY