0% found this document useful (0 votes)
63 views

Hostel Management System: + Visvesvaraya Technological University

Uploaded by

Mansi R U
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Hostel Management System: + Visvesvaraya Technological University

Uploaded by

Mansi R U
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

+ VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“JNANA SANGAMA”, BELGAUM - 590018

2021-22
DBMS Mini Project Report On

HOSTEL MANAGEMENT SYSTEM


SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT IN 5TH SEMESTER DBMS
LABORATORY WITH MINI PROJECT WORK (18CSL58) OF BACHELOR OF ENGINEERING

IN

INFORMATION SCIENCE AND ENGINEERING

BY

AMULYA BHARADWAJ.S 4VM19IS002


MANSI R U 4VM19IS018
UNDER THE GUIDANCE OF

Prof. Latha D U Prof. Swathi Raj


Assistant Professor Assistant Professor
Dept. of ISE Dept. of ISE

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

VIDYA VIKAS INSTITUTE OF ENGINEERING & TECHNOLOGY


#127-128, Mysore - Bannur Road, Alanahally, Mysuru, Karnataka 570028
Vidya Vikas Educational Trust ®
VIDYA VIKAS INSTITUTE OF
ENGINEERING &TECHNOLOGY
#127-128, Mysore - Bannur Road, Alanahally, Mysuru, Karnataka 570028

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE
Certified that the DBMS Mini Project Work entitled “HOSTEL MANAGEMENT SYSTEM”
carried out by AMULYA BHARADWAJ.S[4VM19IS002] and MANSI R U [4VM19IS018],
bonafide students of VVIET in partial fulfillment for the award of degree Bachelor of
Engineering in COMPUTER SCIENCE and ENGINEERING as prescribed by
VISVESVARAYA TECHNOLOGICAL UNIVERSITY, BELGAUM during the academic year
2021-22. It is certified that all corrections/suggestionsindicated for internal assessment have been
incorporated in the report deposited in the departmental library. The project report has been
approved as it satisfies the academic requirements in respect of mini project work
prescribed for the said degree.

Prof. Latha D U Prof. Swathi Raj Dr. Madhu B K


Assistant Professor Assistant Professor Professor & Head
Dept. of ISE Dept. of ISE Dept. of ISE

EXTERNAL VIVA
Name of the examiners Signature with date

1.

2.
Hostel Management System Introduction

ACKNOWLEDGEMENT

We would like to thank and express our heartfelt gratitude to God almighty for the abundant
blessings without which this project would not have been successful.
We would like to express our sincere gratitude to Sri. Vasu, Chairman of VVIET, Mr.
Kaveesh Gowda V, Secretary of VVIET and all management members of VVIET, for their constant
support.
We acknowledge and express our sincere thanks to our beloved Principal
Dr. Ravishankar M, VVIET, Mysuru who is the source of inspiration.
We would like to express our deepest sense of gratitude towards Dr. Madhu B K, Head
of the Department, CSE, VVIET, Mysuru for his valuable suggestions, support and
encouragement.
We would like to extend our heartfelt gratitude to Mr. Theja N, Assistant Professor, Dept.
of CSE, for the valuable guidance and advice. We would also like to thank him for his guidance
and useful suggestions, which helped us in completing the project work on time.
We would also thank all other teaching and non-teaching staffs of the Computer Science
Department who have directly or indirectly helped us in completion of this project.
Our thanks and appreciation also go to our family and friends who have willingly helped
us out with their abilities.

Regards,
AMULYA BHARADWAJ.S
MANSI R U

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Introducti

ABSTRACT

This project “HOSTEL MANAGEMENT SYSTEM” is developed for managing various activities in a
hostel. Managing the records of a large no of students has always been a challenging task for a hostel
manager. There is a lot of strain on the person who is running the hostel and software are not usually
used in this context. Managing everything on paper is now a days not a beneficial way as it is time
consuming, error prone and have many more complications like that. Various new features like MESS
MANAGEMENT, STAFF SHIFTS, and PAYMENT DETAILS etc. are also included in this project to
facilitate an Admin.

Identifying the problems which occur when carried manually, we have tried our best to design
the software in such a way that a not so tech-friendly administrator can also handle it an easy way.
Interface has been kept simple and user-friendly keeping in mind the complications in managing a
hostel. One can enhance his efficiency and productivity being an administrator using this software, thus
overcome the drawbacks of the existing traditional system

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Introducti

TABLE OF CONTENTS

Abstract 1

Table Of Contents 2

List of Figures 4

1. Introduction 5

Problem Statement 5

Objectives 5

Scope 5

2. Literature Survey 6

2.1 Existing File System 6

2.2 Pros and Cons of the Existing Approach 6

2.3 Downfall of Existing Management System 7

2.4 Introduction to the database management system 8

2.5 Indicative areas for the use of DBMS 8

2.6 Advantages of DBMS 8

2.7 Components of DBMS 9

3. System Requirements 10

3.1 Hardware Requirements 10

3.2 Software Requirements 10

4. Design 11

4.1 Requirements and Constraints 11

4.2 Entities and Attributes 12

4.3 ER Diagram 16

5. Implementation 18

5.1 Technologies/Frameworks used in building the project 18

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Introducti

5.2 Code Snippets 19

6. Testing and Result 30

6.1 Testing Process 30

6.2 Testing Objectives 30

6.3 Test Cases 30

6.4 Snapshots 31

Conclusion 36

References 37

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Introducti

LIST OF FIGURES

Fig No. Description Page No.

Fig 2.1 Components of database 10

Fig 4.1 ER Diagram 18

Fig 6.4.1 Snapshots 1 25

Fig 6.4.2 Snapshot 2 25

Fig 6.4.3 Snapshot 3 25

Fig 6.4.4 Snapshot 4 26

Fig 6.4.5 Snapshot 5 26

Fig 6.4.6 Snapshot 6 26

Fig 6.4.7 Snapshot 7 27

Fig 6.4.8 Snapshot 8 27

Fig 6.4.9 Snapshot 9 27

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Introducti

Chapter 1
INTRODUCTION
1.1 Problem Statement
We have got nine hostels in our university, which consist of four boys hostel and Five girls
hostel. All these hostels at present are managed manually by the hostel office. The Registration
form verification to the different data processing are done manually. Thus there area 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 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 and more GUI oriented. We can improve the efficiency of the system,
thus overcome the drawbacks of the existing system.

1.2 Objectives
Hostel Management System is a customize and user-friendly ssoftware for hostel which
provides hostel information, hostel room information , and hostel accounts information. It
helps admin to manage: student record, staff record, generating staff and student report.

The following objectives are achieved:

 This System Helps the Hostel Management To Improve Their Services For All
The Students Of The Hostel.

 Through This System 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 Student Information Like Mess Bills, Hostel Dues So On.

 The Student Of The Hostel Will Be Recognized From The ID Number Allocated
At The Room Rental Time.

1.2 Scope

The software product 'hostel management system’ will be an application That will used for
maintaining the records in organised manner and to replace Old paper working system. The hostel
management system is designed for hostel like (schools and universities).

Dept of ISE, VVIET, Mysuru - 2021- Page


Hostel Management Literature
Chapter 2
LITERATURE SURVEY
2.1 Existing File System

Existing system is based on manual work and all the process are done manually, so they
maintain registers and files for recording all the details of the system. They maintain several
registers for recording the entry of daily transactions such as visitors visited the hostel, visitor
drop the message for a particular student, etc. They maintain the record of the students so they
keep each and every information regarding the students in the student master file. In the similar
fashion they maintain the records of their fees so they keep each and every information
regarding their details in the fees master file. They keep the bill Book or receipt Book to
maintain the record for the fees collected by the student. They maintain the register or Book for
staff so they can pay the salary. Thus maintaining Staff information, Student Information,
Visitors information, Check-in and Checkout information and all the things are done manually.

2.2 Pros and Cons of the Existing System

Pros
 Good security for user information
 Easy to handle

 Easy to data updating

 Less human error

 Speed up the process

 Real time results

 Timely financial reports

 Collaboration of various departments

 Market segmentation

Dept of 2019- Pa
Hostel Management Literature

Cons

o More human power


o More strength and strain of manual labour needed
o Repetition of same procedure.
o Low security.
o Data redundancy.
o Difficulty to handle.
o Difficulty to update data.
o Record keeping is difficult.
o Backup data can be easily generated.

2.3 Downfall of Traditional Management System

Conceived in a relatively centralized era when software was developed in static environment,
legacy database architectures failed to support an increasingly mobile world when applications
are accessed anytime, anywhere.

However , legacy database Technologies fall short in serving the needs of today's distributed
and cloud environment for the following reasons:

o Inadequate failure capabilities

o Latency issues

o Insufficient provisions during peak demands

o Lack of high availability at all times

o Increasing operational cost

For all of these reasons, traditional databases are unable to deliver results in a rapidly growing
environment where the workload is geographically distributed across heterogeneous data centers.
Upgrading two or more distributed data model is costly and complicated and your DBAs can't just sit
back and give up on this situation. Hence due to these various reasons, the downfall of the traditional
system was inevitable.

Dept of 2019- Pa
Hostel Management Literature

2.4 Introduction to the database management system

A Database Management System (DBMS) refers to the technology for creating and managing
databases. Basically, a DBMS is a software tool to organise (create, retrieve, update and
manage) data in the database.

The main aim of DBMS is to supply a way to store and retrieve database information that is
both convenient and efficient. By data, we mean known facts that can be recorded and that
have embedded meaning. Normally people use software such as DBASE IV or V, Microsoft
ACCESS or EXCEL to store data in the form of database. A datum is a unit of data.

Database systems are meant to handle large collection of information. Management of


data involves both defining structures for storage of Information and providing mechanism that
can do the manipulation of the store information. Moreover, the database systems must ensure
the safety of the information stored,despite system crashes or attempts at unauthorised access.

2.5 Indicative areas for the use of DBMS

● Airlines: reservations, schedules etc.


● Telecom: calls made, customer details, network usage etc.
● Universities: registration, results, grade etc.
● Sales: products, purchases, customers etc.
● Banking: all transactions etc.

2.6 Advantages of DBMS

A Database Management System has many advantages over the traditional file system used in
the earlier days, such as:

● Data Independence: Application programs should be as free or independent as possible


from the details of data representation and storage device can supply and abstract of the
date of insulating application code from such facts.

Dept of 2019- Pa
Hostel Management Literature

● Inefficient Data Access: DBMS utilizes the mixture of sophisticated concepts and
techniques for storing and retrieving data competently and this feature becomes
important in cases where the data is stored on external storage devices.
● Data Administration: When several users share the data, integrating the administration
of data can offer major implements. Experienced professional understand the nature of
data being managed and can be responsible for organizing the data representation to
reduce redundancy and make the data to retrieve efficiently.

2.7 Components of DBMS

Fig 2.1

● Users: Users may be of any kind, such as database administrators, systemdevelopers or


database users.

● Application: Database application may be Departmental,Personal, Organizational and


/or Internal Database

● DBMS: Software that allows users to create and manipulate databaseaccess.

● Database: A Collection of logical data as a single unit.

Dept of 2019- Pa
Hostel Management System

Chapter 3
SYSTEM REQUIREMENTS
3.1 Hardware Requirements
i. Processor: Pentium 4 or above
ii. Ram: 512MB
iii. Hard Disk: 40GB

3.2 Software Requirements


Technologies used:

i. Front end: PHP , JAVA SCRIPT , CSS


ii. Connection/Controller: EXPRESS JS
iii. Back-end/Database: MySQL

Software:

i. Text Editor: VS Code


ii. Server: Apache (on XAMPP)
iii. Operating System: Windows 11
iv. Database Support: MySQL 5.7
v. Back-end: MySQL

Dept of 2019- Page


Hostel Management Desi

Chapter 4
DESIGN
In order to design a web site, the relational database must be designed first. Conceptual design
can be divided into two parts: The data model and the process model. The data model focuses
on what data should be stored in the database while the process model deals with how the data
is processed. To put this in the context of the relational database, the data model is used to
design the relational tables. The process model is used to design the queries that will
accessand perform operations on those tables.

4.1 Requirements and Constraints

1. user generate account number.


2. user allow the hostel staff members or guardians to scan’s the student’s id and access its profile.
3. user have permission of renewing the student’s registration every year.
4. user shall generate the users profile containing the following information users account no, full
name ,address, phone no & room no.
5. user will change dues status in database according to dues paid or not.
6. user will allocate rooms to students according to the session or class.
7. user must have the details of a mess of a student and stored in a database.
8. user must allow the warden to add new users to the system’s database.
9. user must allow to put hold on a room if any room is not available at the moment.
10. user must allow the guardian to cancel the registration from the system’s database who will
leave room.

Dept of 2019- Page


Hostel Management Desi

4.2 Entities and Attributes

Name Description
Login Contains login credentials of all users

Buyer Contains the buyer credentials

Seller Contains the seller credentials

Products Contains the product information

Categories Contains the list of categories available

Orders Contains the orders history of all the buyers

Table 4.1 Table-names and their description

Dept of 2019- Page


Hostel Management Desi

1. Admin

Name Description Type


Id (primary key) Contains the login id Int(11)

Username Contains the name of the user Varchar(55)

Email Contains the email id of the user Varchar(255)

Password Contains the hashed password Varchar(300)


Reg_date Contains the date when the user timestamp
registered
Updation_date Contains the update of the date date

Table 4.1 Admin table


2. Admin log

Name Description Type

Id (primary key) Contains the login id Int(11)

Admin id Contains the admin login id Int(11)

Ip Contains IP address Varbinary(16)


Login time Contains the time of admin’s timestamp
login
Table 4.2 Admin log

3. Courses
Name Description Type
Id (Primary key) Contains the login id Int(11)

Course_code Contains code of the courses Varchar(255)

Course_sn Contains the short name Varchar(255)

Course_fn Contains the long name Varchar(255)


Posting_date Contains the entering date of Timestamp
student

Table 4.3 courses table

Dept of 2019- Page


Hostel Management Desi

4. Registration
Name Type Description
Id int(11) Contains user id
Room no int(11) Contains room no
Seater int(11) Contains seater no
Fees pm int(11) Contains fees payment
Food status int(11 Contains food status
stay from date Contains user stay from
Duration int(11) Contains duration of user
Course varchar(500) Contains course of user
Regno int(11) Contains reg no
First Name varchar(500) Contains first name
Middle Name varchar(500) Contains middle name
Last name varchar(500) Contains last name
Gender varchar(500) Contains gender of user
Contact no bigint(11) Contains contact no
Email id varchar(500) Contains email id
egycontact no bigint(11) Contains emergency contact no
Guardian name varchar(500) Contains guardian name
Guardian contact no bigint(11) Contains contact no
Corress address varchar(500) Contains coresspondance address
Coresss city varchar(500) Contains corresspondance city
Coress state varchar(500) Contains corresspondance state
Corress pincode int(11) Contains corresspondance pincode
Pmnt address varchar(500) Contains permanent address
Pmnt city varchar(500) Contains permanent city
Pmnt state varchar(500) Contains permanent state
Pmnt pincode int(11) Contains permanent pincode
Posting date timestamp Contains posting date
Updation date varchar(500) Contains updation date

Table 4.4 Registration table

Dept of 2019- Page


Hostel Management Desi

5. Room
Name Description Type
Id (primary key) Contains the login id int(11)

seater Contains the seater number int(11)


Room no Contains the room no int(11)
fees Contains the fee structure int(11)

Posting date Contains the posting date timestamp

Table 4.5 Room table

6. State

Name Descripition Type


id Contains the login id Int(11)
State Contains the state name of the varchar(150)
student

Table 4.6 State table

7. Userlog
Name Description Type
id Contains the login id int(11)

Userid Contains the user id int(11)

Useremail Contains the user email varchar(255)

Userip Contains the user ip varbinary(16)

City Contains the city name of the student varchar(255)


Country Contains the country name of the varchar(255)
student
Logintime Contains the login time timestamp

Table 4.7 Userlog table

Dept of 2019- Page


Hostel Management Desi

8. User registration

Name Description Type


Id Contains the login id int(11)
Regno Contains the register no varchar(255)
First name Contains the first name of the user varchar(255)
Middle name Contains the middle name of the user varchar(255)
Last name Contains the last name of the user varchar(255)
Gender Contains the gender of the user varchar(255)
Contact no Contains the contact no bigint(20)
Email Contains the email id varchar(255)
Password Contains the password varchar(255)
Reg date Contains the registration date timestamp
Updation date Contains the updation date varchar(45)
passUdate Date Contains the pass u date varchar(45)

Table 4.8 userregistration table

Dept of 2019- Page


Hostel Management Desi

ER Diagram
An entity relationship diagram (ERD) shows the relationships of entity sets stored in a
database. An entity in this context is an object, a component of data. An entity set is a
collection of similar entities. These entities can have attributes that define its properties. The
fig. 4.1 shows the ERD for the database.

Fig 4.1 ER Diagram

Dept of 2019- Page


Hostel Management Implementati

Chapter 5
IMPLEMENTATION
5.1 Technologies/Frameworks used in building the project
PHP (Hypertext Preprocesser)

PHP is a general-purpose scripting language geared towards web development. It was


originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference
implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page,but
it now stands for the recursive initialism. PHP code is usually processed on a web server by a PHP
interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable.
On a web server, the result of the interpreted and executed PHP code – which may be any type of data,
such as generated HTML or binary image data – would form the whole or part of an HTTP response

SQL (Structured Query Language)

MySQL Database Management System is used to store the user and product information
which is stored in the secondary storage device and can be altered anytime.Normalized and
efficient schema is used to avoid redundancy and inconsistency. The data is updated in real time.

CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a mark-up language like HTML5.

Java script

JavaScript (often shortened to JS) is a lightweight, interpreted, object-oriented


language with first-class functions, and is best known as the scripting language for Web
pages, but it's used in many non-browser environments as well. It is a prototype-based,
multi-paradigm scripting language that is dynamic, and supports object-oriented,
imperative, and functional programming styles. JavaScript runs on the client side of the
web, which can be used to design / program how the web pages behave on the
occurrence of an event. JavaScript is an easy to learn and also powerful scripting
language, widely used for controlling web page behavior.

Dept of 2019- Page


Hostel Management Implementati

5.2 Code Snippets

CREATE TABLE `admin` (


`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(300) NOT NULL,
`reg_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updation_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `admin` (`id`, `username`, `email`, `password`, `reg_date`, `updation_date`) VALUES
(1, 'admin', '[email protected]', 'Test@1234', '2016-04-04 20:31:45', '2016-04-17');

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
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `courses` (


`id` int(11) NOT NULL,
`course_code` varchar(255) NOT NULL,
`course_sn` varchar(255) NOT NULL,
`course_fn` varchar(255) NOT NULL,
`posting_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `courses` (`id`, `course_code`, `course_sn`, `course_fn`, `posting_date`) VALUES


(1, 'B10992', 'B.Tech', 'Bachelor of Technology', '2016-04-11 19:31:42'),
(2, 'BCOM1453', 'B.Com', 'Bachelor Of commerce ', '2016-04-11 19:32:46'),
(3, 'BSC12', 'BSC', 'Bachelor of Science', '2016-04-11 19:33:23'),
(4, 'BC36356', 'BCA', 'Bachelor Of Computer Application', '2016-04-11 19:34:18'),
(5, 'MCA565', 'MCA', 'Master of Computer Application', '2016-04-11 19:34:40'),
(6, 'MBA75', 'MBA', 'Master of Business Administration', '2016-04-11 19:34:59'),
(7, 'BE765', 'BE', 'Bachelor of Engineering', '2016-04-11 19:35:19');

CREATE TABLE `registration` (


`id` int(11) NOT NULL,
`roomno` int(11) NOT NULL,
`seater` int(11) NOT NULL,
`feespm` int(11) NOT NULL,
`foodstatus` int(11) NOT NULL,
`stayfrom` date NOT NULL,
`duration` int(11) NOT NULL,
`course` varchar(500) NOT NULL,
`regno` int(11) NOT NULL,
`firstName` varchar(500) NOT NULL,
`middleName` varchar(500) NOT NULL,
`lastName` varchar(500) NOT NULL,
`gender` varchar(250) NOT NULL,
`contactno` bigint(11) NOT NULL,
`emailid` varchar(500) NOT NULL,
`egycontactno` bigint(11) NOT NULL,
`guardianName` varchar(500) NOT NULL,
`guardianRelation` varchar(500) NOT NULL,

Dept of 2019- Page


Hostel Management Implementati

`guardianContactno` bigint(11) NOT NULL,


`corresAddress` varchar(500) NOT NULL,
`corresCIty` varchar(500) NOT NULL,
`corresState` varchar(500) NOT NULL,
`corresPincode` int(11) NOT NULL,
`pmntAddress` varchar(500) NOT NULL,
`pmntCity` varchar(500) NOT NULL,
`pmnatetState` varchar(500) NOT NULL,
`pmntPincode` int(11) NOT NULL,
`postingDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updationDate` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `registration` (`id`, `roomno`, `seater`, `feespm`, `foodstatus`, `stayfrom`, `duration`, `course`, `regno`,
`firstName`, `middleName`, `lastName`, `gender`, `contactno`, `emailid`, `egycontactno`, `guardianName`,
`guardianRelation`, `guardianContactno`, `corresAddress`, `corresCIty`, `corresState`, `corresPincode`,
`pmntAddress`, `pmntCity`, `pmnatetState`, `pmntPincode`, `postingDate`, `updationDate`) VALUES
(8, 112, 3, 4000, 0, '2016-06-27', 5, 'Bachelor of Science', 102355, 'Harry', 'projects', 'Singh', 'male', 6786786786,
'[email protected]', 789632587, 'demo', 'demo', 1234567890, 'New Delhi', 'Delhi', 'Delhi (NCT)', 110001, 'New
Delhi', 'Delhi', 'Delhi (NCT)', 110001, '2016-06-26 16:31:08', ''),
(9, 132, 5, 2000, 1, '2016-06-28', 6, 'Bachelor of Engineering', 586952, 'Benjamin', '', 'projects', 'male', 8596185625,
'[email protected]', 8285703354, 'demo', 'demo', 8285703354, 'H no- 18/1 Bihari puram phase-1 melrose bye
pass', 'Aligarh', 'EPE', 202001, 'H no- 18/1 Bihari puram phase-1 melrose bye pass', 'Aligarh', 'EPE', 202001, '2016-
06-26 16:40:07', '');

CREATE TABLE `rooms` (


`id` int(11) NOT NULL,
`seater` int(11) NOT NULL,
`room_no` int(11) NOT NULL,
`fees` int(11) NOT NULL,
`posting_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `rooms` (`id`, `seater`, `room_no`, `fees`, `posting_date`) VALUES


(1, 5, 100, 8000, '2016-04-11 22:45:43'),
(2, 2, 201, 6000, '2016-04-12 01:30:47'),
(3, 2, 200, 6000, '2016-04-12 01:30:58'),
(4, 3, 112, 4000, '2016-04-12 01:31:07'),
(5, 5, 132, 2000, '2016-04-12 01:31:15');

CREATE TABLE `states` (


`id` int(11) NOT NULL,
`State` varchar(150) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO `states` (`id`, `State`) VALUES


(1, 'Andaman and Nicobar Island (UT)'),
(2, 'Andhra Pradesh'),
(3, 'Arunachal Pradesh'),
(4, 'Assam'),
(5, 'Bihar'),
(6, 'Chandigarh (UT)'),
(7, 'Chhattisgarh'),
(8, 'Dadra and Nagar Haveli (UT)'),
(9, 'Daman and Diu (UT)'),
(10, 'Delhi (NCT)'),
(11, 'Goa'),
(12, 'Gujarat'),
(13, 'Haryana'),
(14, 'Himachal Pradesh'),
(15, 'Jammu and Kashmir'),

Dept of 2019- Page


Hostel Management Implementati

(16, 'Jharkhand'),
(17, 'Karnataka'),
(18, 'Kerala'),
(19, 'Lakshadweep (UT)'),
(20, 'Madhya Pradesh');

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
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `userlog` (`id`, `userId`, `userEmail`, `userIp`, `city`, `country`, `loginTime`) VALUES
(1, 10, '[email protected]', '', '', '', '2016-06-22 06:16:42'),
(2, 10, '[email protected]', '', '', '', '2016-06-24 11:20:28'),
(4, 10, '[email protected]', 0x3a3a31, '', '', '2016-06-24 11:22:47'),
(5, 10, '[email protected]', 0x3a3a31, '', '', '2016-06-26 15:37:40'),
(6, 20, '[email protected]', 0x3a3a31, '', '', '2016-06-26 16:40:57'),
(7, 10, '[email protected]', 0x3a3a31, '', '', '2019-02-10 07:43:43'),
(8, 21, '[email protected]', 0x3a3a31, '', '', '2019-02-10 08:49:33'),
(9, 21, '[email protected]', 0x3a3a31, '', '', '2019-02-10 08:52:11'),
(10, 21, '[email protected]', 0x3a3a31, '', '', '2019-02-10 08:54:58');

CREATE TABLE `userregistration` (


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

INSERT INTO `userregistration` (`id`, `regNo`, `firstName`, `middleName`, `lastName`, `gender`, `contactNo`,
`email`, `password`, `regDate`, `updationDate`, `passUdateDate`) VALUES
(10, '108061211', 'code', 'test', 'projects', 'male', 8467067344, '[email protected]', 'Test@123', '2016-06-22 04:21:33',
'23-06-2016 11:04:15', '22-06-2016 05:16:49'),
(19, '102355', 'Harry', 'projects', 'Singh', 'male', 6786786786, '[email protected]', '6786786786', '2016-06-26
16:33:36', '', ''),
(20, '586952', 'Benjamin', '', 'projects', 'male', 8596185625, '[email protected]', '8596185625', '2016-06-26
16:40:07', '', '');

ALTER TABLE `admin`


ADD PRIMARY KEY (`id`);

ALTER TABLE `courses`


ADD PRIMARY KEY (`id`);

ALTER TABLE `registration`


ADD PRIMARY KEY (`id`);

Dept of 2019- Page


Hostel Management Implementati

ALTER TABLE `rooms`


ADD PRIMARY KEY (`id`);

ALTER TABLE `states`


ADD PRIMARY KEY (`id`);

ALTER TABLE `userlog`


ADD PRIMARY KEY (`id`);

ALTER TABLE `userregistration`


ADD PRIMARY KEY (`id`);

AUTO_INCREMENT for dumped tables

AUTO_INCREMENT for table `admin`

ALTER TABLE `admin`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

-- AUTO_INCREMENT for table `courses`

ALTER TABLE `courses`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

-- AUTO_INCREMENT for table `registration`

ALTER TABLE `registration`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

-- AUTO_INCREMENT for table `rooms`

ALTER TABLE `rooms`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

-- AUTO_INCREMENT for table `states`

ALTER TABLE `states`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

-- AUTO_INCREMENT for table `userlog`

ALTER TABLE `userlog`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

-- AUTO_INCREMENT for table `userregistration`

ALTER TABLE `userregistration`

Dept of 2019- Page


Hostel Management

Chapter 6
TESTING AND RESULT
This chapter gives an outline of all testing methods that are carried out to get a bug free
system. It provides a way to check the functionality of components sub-
assemblies and/or a finished product. It is the process of exercising software with
the intent of ensuring that the Software system meets its requirements and user
expectations and does not fail in an unacceptable manner. There are various types
of test. Each test type addresses a specific testing requirement.

6.1 Testing Process


Testing is an integral part of software development. Testing process certifies whether
the product that is developed compiles with the standards that it was designed to.
Testing process involves building of test cases against which the product has to be
tested.

6.2 Testing Objectives

The main objectives of testing process are as follows.


1. Testing is a process of executing a program with the intent of finding an error.
2. A good test case is one that has a high probability of finding undiscovered error.

6.3 Test Cases


EXPECTED OBSERVED
SL NO TEST RESULTS REMARKS
RESULTS RESULTS

New tuple should be Query OK 1 row PASS


1 Insert a record inserted affected or inserted
Return the requested
2 Search a record Display the Record TRUE
record
Update the particular Update successful PASS
3 Update a record in the table
Tuple removed from Query OK recorddeleted PASS
5 Delete a database

Dept of 2019- Page


Hostel Management

6.4 Snapshots

Fig 6.4.1 Snapshot 1

Fig 6.4.2: Snapshot 2

Fig 6.4.3: Snapshot 3

Dept of 2019- Page


Hostel Management

Fig 6.4.4: Snapshot 4

Fig 6.4.5: Snapshot 5

Fig 6.4.6 Snapshot 6

Dept of 2019- Page


Hostel Management

Fig 6.4.7: Snapshot 7

Fig 6.4.8: Snapshot 8

Fig 6.4.9: Snapshot 9

Dept of 2019- Page


Hostel Management

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 want to manage
various activities in the hostel. For the past few years the number of educational institutions are
increasing rapidly. Thereby the number 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 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 and more
GUI oriented.

FUTURE ENHANCEMENT

 Employee Payroll: We can include the facility in this system that will generate payroll for all the
employees of the hostel.
 Residence Attendance: The attendance of resident will be marked each time the resident enters
or leaves the hostel premises.
 Accounting Details except Hosteller’s Fee details: All the other accounting details can be
maintained in addition to the fee details.

Dept of 2019- Page


Hostel Management

REFERENCES

1.www.w3schools.com
2. In.php.net
3. en.wikipedia.org/wiki/PHP
4.www.hotscripts.com/category/php/
5. www.apache.org/
6.www.mysql.com/click.php?e=35050

Dept of 2019- Page


Hostel Management

Dept of ISE,VVIET 2019-20 Page 30

You might also like