You are on page 1of 49

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

JnanaSangama, Belagavi - 590018

DBMS Mini Project Report on


HOSTEL MANAGEMENT SYSTEM
Submitted in partial fulfillment for 5th sem DBMS Mini Project
Bachelor of Engineering
In

Computer Science and Engineering


Submitted by
Vandana GM Tejeswini MJ
1VK21CS086 1VK21CS084

Under the Guidance


of
Soniya L
Assistant Professor, Department of Computer Science

VIVEKANANDA INSTITUTE OF TECHNOLOGY


Department of Computer Science and engineering Gudimavu,
Kumbalgodu(P), Kengeri (H), Bengaluru-560074
Janatha Education Society®
VIVEKANANDA INSTITUTE OF TECHNOLOGY
Gudimavu, Kumbalagodu Post, Kengeri Hobli, Bengaluru – 560 074

Department of Computer Science and Engineering

CERTIFICATE
This is to certify that the Mini project work entitled “Cake Ordering Management System” carried
out by VANDANA GM bearing the USN: 1VK21CS086 and TEJESWINI MJ bearing the USN:
1VK21CS084 is a bonafide student of Vivekananda Institute of Technology, Bengaluru in partial
fulfillment of the requirements for the fifth semester DBMS LABORATORY WITH MINI
PROJECT(21CSL55) of Bachelor of Engineering in Computer Science and Engineering of the
Visvesvaraya Technological University, Belagavi during the year 2023-24. It is certified that all
corrections/suggestions indicated for internal assessment have been incorporated in the report
deposited in the departmental library. The mini project report has been approved as it satisfies the
academic requirements in respect of Project work prescribed for the said degree.

Signature of the Guide Signature of the HOD Signature of the Principal


Soniya L Dr. Vidya A Dr. K M Ravi Kumar
Asst. Professor Prof. & Head Principal
Department of Department of VKIT, Bengaluru
CSE CSE
VKIT, Bengaluru VKIT, Bengaluru

External Viva-Voce
Name of the Examiners Signature with date
1.

2.
ACKNOWLEDGEMENT

It gives us immense pleasure to write an acknowledgement to this mini project, a


contribution of all people who helped me realize it. We are very thankful to our Principal,
Dr. K M Ravi Kumar, VKIT, Bengaluru, for being kind enough to provide us an
opportunity to work on a project in this institution. We would like to convey our heartfelt
thanks to our beloved HOD, Dr. Vidya A, Department of Computer Science and
Engineering, VKIT, Bengaluru for giving us the opportunity to embark up to this topic. We
would like to sincerely thank our project guide Soniya L Asst. Professor, Dept. of
Computer Science and Engineering for their valuable guidance, constant assistance,
support and constructive suggestions for the betterment of the project, without which this
project would have not been possible.

Finally, it is a pleasure and happiness to the friendly co-operation showed by all the staffs of
Computer Science and Engineering Department, VKIT

Vandana GM (1VK21CS086)
Tejeswini MJ (1VK21CS084)

i
ABSTRACT

The Hostel Management System mini project abstract involves the design and implementation of
a Database Management System (DBMS) using HTML, CSS, and PHP technologies. This
system is tailored for efficient hostel administration, encompassing features such as student
registration, room allocation, fee management, and attendance tracking. The user interfaces are
created with HTML and styled with CSS, providing an intuitive experience. PHP is employed to
connect the frontend with the backend database, ensuring seamless data retrieval and
manipulation. This mini project aims to showcase the integration of web technologies in
developing a comprehensive solution for managing hostel operations.

ii
TABLE OF CONTENTS

Acknowledgement i
Abstract ii
Table of contents iii
List of Snapshots v
List of Tables vi
List of Figures vii
List Of Abbreviation viii

Chapter 1: Introduction 1
1.1 Objectives of Project 1
1.2 Limitations 2

Chapter 2: Requirement Specifications 3


2.1 Hardware Requirement 3
2.2 Software Configuration 3

Chapter 3: Project Design 4


3.1 ER Diagram 4
3.2 Schema Diagram 5

Chapter 4: Implementation 6
4.1 Introduction 6
4.1.1 Database 6
4.1.2 SQL 6
4.1.3 Server 6

iii
4.2 Source Code: 7

4.2.1 Front End 7


4.2.2 Back End 8

4.2.3 Code for Registration 9


4.2.4 Connection to database 18
4.3 Tables
19
4.4 Trigger 21

Chapter 5: Snapshots and Results 22

Chapter 6: Conclusion 31

iv
LIST OF SNAPSHOTS

5.1 Student Registration 22

5.2 User Login 22

5.3 Dashboard 23

5.4 My Profile 23

5.5 Change Password 24

5.6 Book Hostel 24

5.7 Room Details 25

5.8 Access Log 25

5.9 Admin 30

v
LIST OF FIGURES

Fig 3.1 ER diagram of flower bouquet system 04

Fig 3.2 Schema diagram of flower bouquet system 05

vi
LIST OF TABLES

4.3 User Acceptant Test Table 16

vii
LIST OF ABBRIVATIONS

1. HTML: Hypertext Markup Language

2. CSS : Cascading Style Sheet

3. JS : Java Script

4. PHP : Hypertext Preprocessor

5. Bootstrap

viii
Chapter 1: INTRODUCTION
The system is designed in favor of the hostel management which helps them to save the
records of the students about their rooms and other things. It helps them from the manual work
from which it is very difficult to find the records of the students and the mess bills of the
students. All the hostels at present are, managed manually by the hostel office. The registration
form verification to the different data processing is done manually. Thus, there are a lot of
repetitions which can be easily avoided. And hence there is a lot of strain on the person who
are running the hostel and software’s are not usually used in this context. This particular
project deals with the problems on managing a hostel and avoids the problems which occur
when carried manually. Identification of the drawbacks of the existing system leads to the
designing of computerized system that will be compatible to the existing system with the
system which is more user friendly. We can improve the efficiency of the system, thus
overcome the drawbacks of the existing system. We design this system of hostel management
especially for the college hostel, through this they cannot require so efficient person to handle
and calculate the things. This system automatically calculates all the bills with and without
food.

1.1 OBJECTIVES OF PROJECT


This software product the hostel management to improve their services for all the students of
the hostel. This also reduce the manual work of the person in admin panel and the bundle of
registers that were search when to find the information of the previous student, because through
this system you can store the data of those who are currently staying in the hostel. Through this
you can check the personal profile of all the current students within few minutes the database of
the system will help you to check a particular one. The system will help you to check the mess
bills of every student. The students of the hostel will be recognized from the room number
allocated during registration time. In the last this system will improve the management work in
the hostel.
 To automate each and every activity of the manual system, which increases
its throughput

5th SEM CSE, VKIT 1 2023-24


HOTEL MANAGEMENT SYSTEM

 To provide a quick response with very accurate information as and when


required.
 To make the present manual system more interactive, speedy and user
friendly.
 To avail any information, whatever and whenever needed.

1.2 LIMITATIONS
 Hostel management System is designed for Hostel (like schools, universities).
 There will be pre-defined criteria for the Reserve to the hostels.
 He checks the attested and verify it with the student database.
 If the students are found eligible then they are allocated to the hostel Room.

5th SEM CSE, VKIT 2 2023-24


HOTEL MANAGEMENT SYSTEM

Chapter 2: REQUIREMENT SPECIFICATION

2.1 HARDWARE REQUIREMENT

Processor : Intel(R) Core(TM) i3-6006U CPU @ 2.00 GHz 2.00 GHz

RAM : 4.00 GB(3.78 GB usable)

Monitor : Generic PnP Monitor

Mouse : Dell Touchpad

Keyboard : HID Keyboard Device

2.1 SOFTWARE CONFIGURATION

Operating system: Windows 10

Language : HTML, CSS and PHP

Database : MYSQL

5th SEM CSE, VKIT 3 2023-24


HOTEL MANAGEMENT SYSTEM

Chapter 3: PROJECT DESIGN

3.1 ER DIAGRAM

id
username
e reg
dat
mail ad e
mi Posting date
n
pass Course
sn
word Cours
Course e fn
lo
gi code
Upd n
date

id
Admi id
Admin log manages
n id
id
Login time se
ip rooms

Posting date at
fees

er

o
Reg no
First name
id
name Middle

5th SEM CSE, VKIT 4 2023-24


HOTEL MANAGEMENT SYSTEM
User id id
User reg registration User User
Last email
name
Use
r ip
gender co
h
unt city
a
Conta p ry
s
ct no em s
ail w states
d

id

5th SEM CSE, VKIT 5 2023-24


HOTEL MANAGEMENT SYSTEM

3.2 SCHEMA DIAGRAM

Admin
Id user name email password reg_date updation date

Adminlog
Id Adminid Ip Logintime

Courses
Id course_code course_sn course_fn posting_date

Registration
Id roomno seater Course reg no firstname middlename lastname Emailid

Rooms
Id Seater room_no fees posting_date

States
Id

Use rlog
Id Userid useremail userip city Country login_time

Use rregistration
Id Regno firstname middlename lastname gender Cont_no Email Password

5th SEM CSE, VKIT 6 2023-24


Chapter 4: IMPLEMENTATION
4.1 INTRODUCTION

4.1.1 DATABASE:
A database is an organized collection of data, generally
stored and accessed electronically from a computer system. Where
databases are more complex, they are often developed using formal design
and modeling techniques

The database management system (DBMS) is the software that interacts


with end users, applications, and the database itself to capture and analyze
the data. The DBMS software additionally encompasses the core facilities
provided to administer the database. The sum total of the database, the
DBMS and the associated applications can be referred to as a "database
system". Often the term "database" is also used to loosely refer to any of
the DBMS, the database system or an application associated with the
database.

Computer scientists may classify database-management systems


according to the database models that they support. Relational databases
became dominant in the 1980s. These model data as rows and columns in
a series of tables, and the vast majority use SQL for writing and querying
data. In the 2000s, non-relational databases became popular, referred to as
NoSQL because they use different query languages.

4.1.2 : SQL

MySQL is the world's second most widely used open-


source relational database management system (RDBMS). The SQL
phrase stands for Structured Query Language. By using this software, the
design of tables will be created.

5th SEM CSE, VKIT 7 2023-24


4.1.3: SERVER
XAMPP is a free and open-source cross-platform web server solution stack package
developed by Apache Friends, consisting mainly of the Apache HTTP Server,
MariaDB database, and interpreters for scripts written in the PHP and Perl
programming languages. Since most actual web server deployments use the same
components as XAMPP, it makes transitioning from a local test server to a live server
possible.

MySql is an open-source relational database management system (RDBMS)being


used by many small and big business. MySql is database system that is used on the
web and runs on the server, mysql is fast, reliable, and easy to use and it uses standard
sql.

The data in a mysql database are stored in tables. A table is collection of related data,
and consists of columns and rows. Php is combined with mysql are cross-platform. A
query a database for specific information and have a record set returned.

PHP is an acronym for “php: hypertext pre-processor”, php is a widely-used, open-


source scripting language. Php scripts are executed on the server, it can generate
dynamic page content and can also create, open, read, write, delete and close files in
the server.

Php can collect form data, php can add, delete, modify data in your database and php
can encrypt data. Php is compatible with almost all servers used today.

5th SEM CSE, VKIT 8 2023-24


4.2 SOURCE CODE:

4.2.1 FRONT END

HTML And CSS

 HTML is utilized to implement the frontend.


 HTML (Hyper Text Markup Language)
 HTML is a syntax used to format a text document on the web.

 CSS, or Cascading Style Sheets, is a presentation


language created to style the appearance of content such
as colors, fonts, and layout.
 CSS helps Web developers create a uniform look across several pages
of a website.

 Instead of defining the style of each table and each block of


text within a page’s HTML, commonly used styles need
to be defined only once in CSS document.

BOOTSTRAP
Bootstrap is a free and open-source front end development
framework for the creation of websites and web apps.
 The bootstrap framework is built on HTML, CSS, and Java
Script (JS) to facilitate the development of
responsive,mobile first sites and apps.
 The main advantage of Bootstrap development is fewer cross
browser bugs, light weight and customizable.
 Responsive structures and styles.
 Several javascript plugins using the JQuery.
 Good documentation and community support

5th SEM CSE, VKIT 9 2023-24


4.2.2 BACK END

PHP
 PHP stands for Hypertext Pre-processor, that earlier
stood for personal home pages.
 PHP is a general-purpose scripting language that is
especially suited to server-side web development, in which
case PHP generally run on a web server.
 Any PHP code in a requested file executed by the PHP
runtime, usually used to create dynamic web page
content or dynamic images used on websites or
elsewhere.
 It is used to manage dynamic content, databases,
session tracking, even build entire e-commerce sites.

5th SEM CSE, VKIT 10 2023-24


5th SEM CSE, VKIT 11 2023-24
HOTEL MANAGEMENT SYSTEM

4 . 2 . 3 Code for Registration


<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1, minimum- scale=1, maximum-
scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Student Hostel Registration</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">>
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3-jquery.min.js"></script>
<script type="text/javascript" src="js/validation.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script>
function getSeater(val) {
$.ajax({

5th SEM CSE, VKIT 12 2023-24


HOTEL MANAGEMENT SYSTEM
type: "POST",

5th SEM CSE, VKIT 13 2023-24


HOTEL MANAGEMENT SYSTEM

url:
"get_seater.p
hp",
data:'roomid
='+val,
success:
function(data
){
//alert(data);
$('#seater').val(data);
}});
$.ajax({
type: "POST",
url:
"get_seate
r.php",
data:'rid='
+val,
success: function(data){
//alert(data);
$('#fpm').val(data);
}});}</script></head><body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">

5th SEM CSE, VKIT 14 2023-24


HOTEL MANAGEMENT SYSTEM
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Registration </h2>
<div class="row">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">Fill all Info</div>
<div class="panel-body">

<form method="post" action="" class="form-horizontal">


<div class="form-group">
<label class="col-sm-4 control-label"><h4 style="color: green" align="left">Room
Related info
</h4> </label></div>
<div class="form-group">
<label class="col-sm-2 control-label">Room no. </label>
<div class="col-sm-8">
<select name="room" id="room"class="form-control"
onChange="getSeater(this.value);" onBlur="checkAvailability()"
required>
<option value="">Select Room</option>
<?php $query ="SELECT * FROM rooms";
$stmt2 = $mysqli->prepare($query);

5th SEM CSE, VKIT 15 2023-24


HOTEL MANAGEMENT SYSTEM

$stmt2->execute();
$res=$stmt
2-
>get_result
();
while($row
=$res-
>fetch_obj
ect())
{?>
<option value="<?php echo $row->room_no;?>"> <?php echo $row->room_no;?
></option>
<?php } ?>
</select>
<span id="room-availability-status" style="font-size:12px;"></span>
</div></div>
<div class="form-group">
<label class="col-sm-2 control-label">Seater</label>
<div class="col-sm-8">
<input type="text" name="seater" id="seater" class="form-control" >
</div></div>
<div class="form-group">
<label class="col-sm-2 control-label">Fees Per Month</label>

<div class="col-sm-8">
<input type="text" name="fpm" id="fpm" class="form-control" >
</div></div>

5th SEM CSE, VKIT 16 2023-24


HOTEL MANAGEMENT SYSTEM

<div class="form-group">
<label class="col-sm-2 control-label">Food Status</label>
<div class="col-sm-8">
<input type="radio" value="0" name="foodstatus" checked="checked"> Without
Food
<input type="radio" value="1" name="foodstatus"> With Food(Rs 2000.00 Per
Month Extra)
</div></div>
<div class="form-group">
<label class="col-sm-2 control-label">Stay From</label>
<div class="col-sm-8">
<input type="date" name="stayf" id="stayf" class="form-control" >
</div> </div>
<div class="form-group">
<label class="col-sm-2 control-label">Duration</label>
<div class="col-sm-8">
<select name="duration" id="duration" class="form-control">
<option value="">Select Duration in Month</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>

5th SEM CSE, VKIT 17 2023-24


HOTEL MANAGEMENT SYSTEM

<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</div>
</div><div class="form-group">
<label class="col-sm-2 control-label"><h4 style="color: green"
align="left">Personal info </h4>
</label>
</div><div class="form-group">
<label class="col-sm-2 control-label">course </label>
<div class="col-sm-8">
<select name="course" id="course" class="form-control" required>
<option value="">Select Course</option>
<?php $query ="SELECT * FROM courses";
$stmt2 = $mysqli->prepare($query);
$stmt2->execute();
<optionvalue="<?phpecho$row->course_fn;?>"><?phpecho$row-
>course_fn;?>&nbsp;&nbsp;(<?php echo $row->course_sn;?>)</option>
<?php } ?>
</select> </div>
</div><div class="form-group">
<label class="col-sm-2 control-label">Registration No : </label>

5th SEM CSE, VKIT 18 2023-24


HOTEL MANAGEMENT SYSTEM

<div class="col-sm-8">
<input type="text" name="regno" id="regno" class="form-control"
required="required" >
</div></div><div class="form-group">
<label class="col-sm-2 control-label">First Name : </label>
<div class="col-sm-8">
<input type="text" name="fname" id="fname" class="form-control"
required="required" >
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Middle Name : </label>
<div class="col-sm-8">
<input type="text" name="mname" id="mname" class="form-control">
</div></div>
<div class="form-group">
<label class="col-sm-2 control-label">Last Name : </label>
<div class="col-sm-8">
<input type="text" name="lname" id="lname" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Gender : </label>
<div class="col-sm-8">
<select name="gender" class="form-control" required="required">
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="others">Others</option>
</select></div></div>
<div class="form-group">

5th SEM CSE, VKIT 19 2023-24


HOTEL MANAGEMENT SYSTEM

<label class="col-sm-2 control-label">Contact No : </label>


<div class="col-sm-8">
<input type="text" name="contact" id="contact" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Email id : </label>
<div class="col-sm-8">
<input type="email" name="email" id="email" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Emergency Contact: </label>
<div class="col-sm-8">
<input type="text" name="econtact" id="econtact" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Guardian Name : </label>
<div class="col-sm-8">
<input type="text" name="gname" id="gname" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Guardian Relation : </label>
<div class="col-sm-8">
<input type="text" name="grelation" id="grelation" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Guardian Contact no : </label>
<div class="col-sm-8">
<input type="text" name="gcontact" id="gcontact" class="form-control"
required="required">

5th SEM CSE, VKIT 20 2023-24


HOTEL MANAGEMENT SYSTEM
</div></div><div class="form-group">
<label class="col-sm-3 control-label"><h4 style="color: green"
align="left">Correspondense Address </h4> </label>
</div><div class="form-group">

<label class="col-sm-2 control-label">Address : </label>


<div class="col-sm-8">
<textarearows="5"name="address"id="address"class="form-control"
required="required"></textarea>
</div></div><div class="form-group">
<label class="col-sm-2 control-label">City : </label>
<div class="col-sm-8">
<input type="text" name="city" id="city" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">State </label>
<div class="col-sm-8">
<select name="state" id="state"class="form-control" required>
<option value="">Select State</option>
<?php $query ="SELECT * FROM states";
$stmt2 = $mysqli->prepare($query);
$stmt2->execute();$res=$stm2->get_result(); while($row=$res->fetch_object())
{?><option value="<?php echo $row->State;?>"><?php echo $row->State;?></option>
<?php } ?>

5th SEM CSE, VKIT 21 2023-24


HOTEL MANAGEMENT SYSTEM

</select> </div></<div class="form-group">


<label class="col-sm-2 control-label">Pincode : </label>
<div class="col-sm-8">
<input type="text" name="pincode" id="pincode" class="form-control"
required="required">
</div></div> <div class="form-group">
<label class="col-sm-3 control-label"><h4 style="color: green"
align="left">Permanent Address
</h4> </label>
</div><div class="form-group">

<label class="col-sm-5 control-label">Permanent Address same as


Correspondense address :
</label>
<div class="col-sm-4">
<input type="checkbox" name="adcheck" value="1"/>
</div></div><div class="form-group">
<label class="col-sm-2 control-label">Address : </label>
<div class="col-sm-8">
<textarearows="5"name="paddress"id="paddress"class="form-control"
required="required"></textarea>
</div></div><div class="form-group">
<label class="col-sm-2 control-label">City : </label>
<div class="col-sm-8">
<input type="text" name="pcity" id="pcity" class="form-control"
required="required">
</div></div><div class="form-group">
<label class="col-sm-2 control-label">State </label>
<div class="col-sm-8">

5th SEM CSE, VKIT 22 2023-24


HOTEL MANAGEMENT SYSTEM
<select name="pstate" id="pstate"class="form-control" required>
<option value="">Select State</option>
<?php $query ="SELECT * FROM states";
$stmt2 = $mysqli->prepare($query);

$stmt2->execute();
{?><option value="<?php echo $row->State;?>"><?php echo
$row->State;?></option>
<?php } ?>
</select> </div>
</div><div class="form-group">
<label class="col-sm-2 control-label">Pincode : </label>

5th SEM CSE, VKIT 23 2023-24


HOTEL MANAGEMENT SYSTEM

<div class="col-sm-8">
<input type="text" name="ppincode" id="ppincode" class="form-control"
required="required">
</script></html>

5th SEM CSE, VKIT 24 2023-24


HOTEL MANAGEMENT SYSTEM

4.2.3 Connection to database


<?php
session_start();
define('DB_SERVER','localhost');
define('DB_USER','root');
define('DB_PASS' ,'');
define('DB_NAME', 'hostel');
$con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME);
// Check connection
if (mysqli_connect_errno())
{echo "Failed to connect to MySQL: " . mysqli_connect_error();}?>
<script language="javascript" type="text/javascript">
function f2(){
window.close();}
function f3(){
window.print(); }
</script>

5th SEM CSE, VKIT 25 2023-24


HOTEL MANAGEMENT SYSTEM

4.3 TABLES

CREATE TABLE `courses` (


`id` int(11) NOT NULL, `course_code` varchar(255) DEFAULT
NULL,`course_sn` varchar(255) DEFAULT NULL,`course_fn`
varchar(255) DEFAULT NULL, `posting_date` timestamp NULL
DEFAULT CURRENT_TIMESTAMP

)
CREATE TABLE `adminlog` (
`id` int(11) NOT NULL, `adminid` int(11) NOT NULL, `ip` varbinary(16) NOT
NULL,
`logintime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
)
CREATE TABLE `courses` (
`id` int(11) NOT NULL, `course_code` varchar(255) DEFAULT
NULL,`course_sn` varchar(255) DEFAULT NULL, `course_fn`
varchar(255) DEFAULT NULL,`posting_date` timestamp NULL
DEFAULT CURRENT_TIMESTAMP

)
CREATE TABLE `registration` (
`id` int(11) NOT NULL, `roomno` int(11) DEFAULT NULL, `seater`
int(11) DEFAULT NULL,`feespm` int(11) DEFAULT
NULL,`foodstatus` int(11) DEFAULT NULL, `stayfrom` date DEFAULT
NULL, `duration` int(11) DEFAULT NULL, `course` varchar(500)
DEFAULT NULL,`regno` int(11) DEFAULT NULL, `firstName`
varchar(500) DEFAULT NULL,
`middleName` varchar(500) DEFAULT NULL, `lastName` varchar(500)

5th SEM CSE, VKIT 26 2023-24


HOTEL MANAGEMENT SYSTEM
DEFAULT NULL,`gender` varchar(250) DEFAULT NULL,`contactno`
bigint(11) DEFAULT NULL,
`emailid` varchar(500) DEFAULT NULL, `egycontactno` bigint(11) DEFAULT
NULL,
`guardianName` varchar(500) DEFAULT NULL, `guardianRelation`
varchar(500) DEFAULT NULL,`guardianContactno` bigint(11)
DEFAULT NULL,`corresAddress` varchar(500) DEFAULT NULL,
`corresCIty` varchar(500) DEFAULT NULL,`corresState` varchar(500)
DEFAULT NULL, `corresPincode` int(11) DEFAULT NULL,
`pmntAddress` varchar(500)
DEFAULT NULL,`pmntCity` varchar(500) DEFAULT NULL,
`pmnatetState` varchar(500) DEFAULT NULL, `pmntPincode` int(11)
DEFAULT NULL,`postingDate` timestamp NULL DEFAULT
CURRENT_TIMESTAMP,`updationDate` varchar(500) DEFAULT
NULL

)
CREATE TABLE `rooms` (
`id` int(11) NOT NULL, `seater` int(11) DEFAULT NULL, `room_no`
int(11) DEFAULT NULL,`fees` int(11) DEFAULT NULL,
`posting_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP)

CREATE TABLE `states` (


`id` int(11) NOT NULL, `State` varchar(150) DEFAULT NULL)
CREATE TABLE `userlog` (
`id` int(11) NOT NULL, `userId` int(11) NOT NULL, `userEmail` varchar(255)
NOT NULL,

`userIp` varbinary(16) NOT NULL,`city` varchar(255) NOT NULL,

`country` varchar(255) NOT NULL, `loginTime` timestamp NOT NULL

DEFAULT CURRENT_TIMESTAMP)

5th SEM CSE, VKIT 27 2023-24


HOTEL MANAGEMENT SYSTEM

CREATE TABLE `userregistration` (


`id` int(11) NOT NULL, `regNo` varchar(255) DEFAULT
NULL,`firstName` varchar(255) DEFAULT NULL, `middleName`
varchar(255) DEFAULT NULL,`lastName` varchar(255) DEFAULT
NULL, `gender` varchar(255) DEFAULT NULL, `contactNo` bigint(20)
DEFAULT NULL,`email` varchar(255) DEFAULT NULL, `password`
varchar(255) DEFAULT NULL,`regDate` timestamp NULL DEFAULT
CURRENT_TIMESTAMP,`updationDate` varchar(45) DEFAULT
NULL, `passUdateDate` varchar(45) DEFAULT NULL

5th SEM CSE, VKIT 28 2023-24


HOTEL MANAGEMENT SYSTEM

4.4 TRIGGER
A Trigger is special kind of stored procedure that executes automatically
when an event occurs in Database Server.

Trigger name : after_adminlog_insert

Table : adminlog

Time : AFTER

Event : INSERT

BEGIN

INSERT INTO adminlog_backup VALUES(NEW.id, NEW.adminid,


NEW.ip, NEW.loginTime);

END

5th SEM CSE, VKIT 29 2023-24


HOTEL MANAGEMENT SYSTEM

CHAPTER 5: USER INTERFACE


5.1: Student Registration

5.2: User login

5th SEM CSE, VKIT 30 2023-24


HOTEL MANAGEMENT SYSTEM

5.3: Dashboard

5.4: My Profile

5th SEM CSE, VKIT 31 2023-24


HOTEL MANAGEMENT SYSTEM

5.5: Change Password

5.6: Book Hostel

5th SEM CSE, VKIT 32 2023-24


HOTEL MANAGEMENT SYSTEM

5.7: Room Details

5.8: Access log

5th SEM CSE, VKIT 33 2023-24


HOTEL MANAGEMENT SYSTEM

5.9: Admin

5.10: Admin profile

5th SEM CSE, VKIT 34 2023-24


HOTEL MANAGEMENT SYSTEM

5.11: Courses

5.12: Manage Courses

5th SEM CSE, VKIT 35 2023-24


HOTEL MANAGEMENT SYSTEM

5.13: Rooms

5.14: Manage Rooms

5th SEM CSE, VKIT 36 2023-24


HOTEL MANAGEMENT SYSTEM

5.15: Student Registration

5.16: Manage Registered Students

5th SEM CSE, VKIT 37 2023-24


HOTEL MANAGEMENT SYSTEM

5.17: Access log

5.18: Admin

5th SEM CSE, VKIT 38 2023-24


HOTEL MANAGEMENT SYSTEM

Chapter 6: CONCLUSION

To conclude the description about the project. The project developed


using PHP and MYSQL is based on the requirement specification of the
user and the analysis of the existing system, with flexibility for future
enhancement.

The expanded functionality of today’s software requires an appropriate


approach towards software development.This hostel management software
is designed for people who manage various activities in the hostel.For the
past few years the numbers of educational institutions are increasing
rapidly. Thereby the numbers of hostels are also increasing for the
accommodation of the students studying in this institution. And hence
there is a lot of strain on the people who are running the hostel and
software’s are not usually used in this context.This particular project deals
with the problems on managing a hostel and avoids the problems which
occur when carried manually.

Identification of the drawbacks of the existing system leads to the


designing of computerized system that will be compatible to the existing
system with the systm which is more user friendly and more GUI oriented.

5th SEM CSE, VKIT 39 2023-24

You might also like