Professional Documents
Culture Documents
DBMS Min PJT Final Report
DBMS Min PJT Final Report
DBMS Min PJT Final Report
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
inComputer Science and Engineering of the Visvesvaraya Technological University,
Belagaviduring 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
miniproject report has been approved as it satisfies the academic requirements in respect of
Projectwork prescribed for the said degree.
External Viva-Voce
Name of the Examiners Signature with date
1.
2.
ACKNOWLEDGEMENT
Finally, it is a pleasure and happiness to the friendly co-operation showed by all the staffs of
ComputerScience 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 4: Implementation 6
4.1 Introduction 6
4.1.1 Database 6
iii
4.1.2 SQL 6
4.1.3 Server 6
4.2 Source Code: 7
Chapter 6: Conclusion 31
iv
LIST OF SNAPSHOTS
5.3 Dashboard 24
5.4 My Profile 24
5.9 Admin 27
5.11 Courses 28
5.13 Rooms 29
5.15 Registration 30
v
LIST OF FIGURES
vi
LIST OF TABLES
vii
LIST OF ABBRIVATIONS
3. JS : Java Script
5. Bootstrap
viii
HOSTEL MANAGEMENT SYSTEM
Chapter 1: INTRODUCTION
The system is designed in favour 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.
To automate each and every activity of the manual system, which increases it’s throughput
.
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’s 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.
Database : MYSQL
4.1 INTRODUCTION
4.1.1 DATABASE:
The database management system (DBMS) is the software that interacts with end users,
applications, and the database itself to capture and analyse 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.
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.
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
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.
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
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.
<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">
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">
</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">
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=$stmt2->get_result();
while($row=$res->fetch_object())
{?><option value="<?php echo $row->State;?>"><?php echo $row->State;?></option> <?php
} ?>
</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">
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">
<textarea rows="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">
<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(); $res=$stmt2->get_result();
while($row=$res->fetch_object())
{?><option value="<?php echo $row->State;?>"><?php echo $row->State;?></option> <?php
} ?>
</select> </div>
</div><div class="form-group">
<div class="col-sm-8">
<input type="text" name="ppincode" id="ppincode" class="form-control" required="required">
</script></html>
)
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) 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)
)
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,
CURRENT_TIMESTAMP
)
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 )
BEGIN
INSERT INTO adminlog_backup VALUES(NEW.id, NEW.adminid, NEW.ip,
NEW.loginTime);
END
5.4 My Profile
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.
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.