HMS Finalrecord
HMS Finalrecord
On
HOSTEL MANAGEMENT SYSTEM
Submitted to the
Department of Computer Applications
Project Done by
P A ALFIYA
Reg No: 233242210870
November - 2024
MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY
MARAMPALLY
BONAFIDE CERTIFICATE
Degree From
Mahatma Gandhi University, Kottayam
2023-2025
CERTIFICATE
This is to certify that the project entitled “HOSTEL MANAGEMENT SYSTEM” has
been successfully carried out by P A ALFIYA (233242210870) in partial fulfillment of the
course Master of Computer Applications.
CERTIFICATE
This is to certify that the project entitled “HOSTEL MANAGEMENT SYSTEM” has
been successfully carried out by P A ALFIYA (233242210870) in partial fulfillment of
the course Master of Computer Applications under my guidance.
DECLARATION
I understand that detection of any such copying is liable to be punished in any way
the school deems fit.
Date: P A ALFIYA
Place: Signature
TABLE OF CONTENTS
Chapter No Description Page No
ABSTRACT 1
INTRODUCTION 2
1.1. INTRODUCTION
3
1 1.2. PROBLEM STATEMENT
1.3. SCOPE AND RELEVANCE OF PROJECT
4
1.4 OBJECTIVES
SYSTEM ANALYSIS 6
2.1. INTRODUCTION
2.2. EXISTING SYSTEM 7
2.2.1 Limitation of Existing System
2.3. PROPOSED SYSTEM
9
2 2.3.1 Advantages of Proposed System
2.4 FEASIBILITY STUDY
2.4.1 Technical Feasibility
2.4.2 Operational Feasibility 11
2.4.3 Economic Feasibility
2.5 SOFTWARE PARADIGM APPLIED: V MODEL
SYSTEM DESIGN 13
3.1. INTRODUCTION
14
3.2. DATABASE DESIGN
3.2.1 Entity Relationship Model
15
3.3. OBJECT ORIENTED DESIGN
3
3.3.1 Activity Diagram 16
3.3.2 Sequence Diagram 17
3.3.3 Use Case Diagram 18
3.4. INPUT DESIGN 19
3.5. OUTPUT DESIGN 20
SYSTEM ENVIRONMENT 22
4.1. INTRODUCTION 23
4.2. SOFTWARE REQUIREMENT
4.3. HARDWARE REQUIREMENT
4 SPECIFICATION 24
4.4. TOOLS AND PLATFORMS
4.4.1 Front End Tools
4.4.2 Back End Tools 28
4.4.3 Operating System 29
SYSTEM IMPLEMENTATION 30
5.1. INTRODUCTION 31
5
5.2. CODING SAMPLE CODES (CORE FORMS) 32
5.3 CODE VALIDATION AND OPTIMIZATION 52
SYSTEM TESTING 53
6.1. INTRODUCTION
54
6 6.2. UNIT TESTING
6.3. INTEGRATION TESTING 56
6.4. SYSTEM TESTING
6.4.1 Test cases 57
SYSTEM MAINTENANCE 59
7 7.1. INTRODUCTION
7.2. MAINTENANCE 60
FUTURE ENHANCEMENT AND SCOPE OF
FURTHER DEVELOPMENT 62
8.1. INTRODUCTION 63
8 8.2. MERITS OF THE SYSTEM
64
8.3. LIMITATIONS OF THE SYSTEM
8.4. FUTURE ENHANCEMENT OF THE SYSTEM 66
9 CONCLUSION 67
10 BIBLIOGRAPHY 70
APPENDIX 72
HOSTEL MANAGEMENT SYSTEM
ABSTRACT
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.
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
In our current era of automated systems with it being either software or hardware, it’s not
advisable to be using manual system. Hostels without a management system are usually done
manually. Registration forms verification to other data saving processes are done manually and
most at times, they are written on paper. Thus, a lot of repetitions can be avoided with an
automated system. The drawbacks of existing systems lead to the design of a computerised
system that will help reduce a lot of manual inputs. With this system in place, we can improve
the efficiency of the system, thus overcome the drawbacks of the existing manual system.
This 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 record of the students and the mess bills of the students,
and the information of about those ones who had left the hostel years before.
ADMIN MODULE
1. Admin Login - Admin can login through login form.
2. Admin Profile - Admin can manage his own profile. Admin can also change his password
3. Courses - Admin can create add course, edit courses and also delete the course.
4. Rooms - Admin can create rooms and allots seater to particular rooms and assign the fees.
5. Registration - Admin can create student profile and allot the rooms.
6. Manage the Registration - Admin can manage the all the student Profile. Take a print out of all
profiles and also delete the profile.
7. Complaints - Admin can manage the all the student complaints and take the appropriate action.
8. Feedback - Admin can view the feedback given by students for the hostel.
USER MODULE
1. User Registration - User can register through user registration form.
2. User Login - User can login through login form.
3. User Dashboard
4. User Profile -User can manage own profile.
5. Book Hostel - User can book hostel.
6. Room Details - Booked Room Details.
7. Complaint Registration - Student can lodge the complaint.
8. Registered Complaint - Student can check the registered complaint and their status.
9. Feedback - Student give their feedback for hostel.
10. User access log - User can watch last login details.
1.4 OBJECTIVES
As the name specifies “HOSTEL MANAGEMENT SYSTEM” is software developed for
managing various activities in the hostel. For the past few years, the number of educational
institutions is increasing rapidly. Thereby the number of hostels is 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
development of computerized hostel management system that will be compatible to the existing
system with the system which is more users friendly and more GUI oriented.
- Automate tasks like room allocation, fee management, student registration, and feedback col-
lection.
- Ensure that students are allocated rooms according to their requirements and course affiliation.
- Provide students with easy access to their booking details, room information, and feedback on
complaints or services.
- Track complaints and feedback for continuous improvement of hostel services and facilities.
- Provide administrators with the ability to control access to sensitive data based on roles and
permissions.
CHAPTER 2
SYSTEM ANALYSIS
2.1 INTRODUCTION
System analysis of study is an important phase of any system development process. The system
is studied to the minutest details and analysed. The system analyst plays the role of an interrogator
and dwells deep into the working of the present system. The system is viewed as a whole and the
inputs to the system are identified. The outputs from the organization are traced to through the
various processing that the input phases through in the organization. A detailed study of this process
must be made by various techniques like interviews, questionnaires, etc. The data collected by these
sources must be scrutinized to arrives to a conclusion. The conclusion is an understanding of the
system function. This system is called existing system. Now the existing system is close study and
problem solver tries to sort out difficulties that the enterprise faces.
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.
- Manual Room Allocation: Room assignments are often done manually, leading to errors or
delays in allocation. Admins have to check room availability manually, which is time-consuming.
- Student Registration: The process of registering new students, verifying details, and assign-
ing rooms manually can take up a significant amount of time, especially as the number of students
increases.
- Paper-based Records: Using physical files and paper documents for student records, fees,
and complaints is inefficient and prone to errors, making data retrieval slow and
cumbersome.
- Data Entry Mistakes: Manual data entry often leads to errors such as incorrect student infor-
mation, room assignments, or fee calculations. These errors can result in confusion, miscom-
munication, and dissatisfaction among students and staff.
- Delayed Information: In a traditional system, admins and students don’t have access to real-
time data. Room availability, booking status, and fee updates may not be updated instantly,
causing miscommunications and booking conflicts.
- Inability to Monitor Operations Efficiently: Admins struggle to get real-time insights into
- Risk of Data Loss: Physical records and spreadsheets are susceptible to loss, theft, or dam-
age. Important student and financial data could be lost in the event of accidents, theft, or sys-
tem failure.
- Unauthorized Access: Without secure login systems or role-based access controls, sensitive
student information may be accessed by unauthorized personnel, compromising privacy and
security.
- Manual Complaint Tracking: Complaints are typically handled through paper-based records
or informal communication methods (e.g., emails, verbal complaints), which makes it diffi-
cult to track the status of complaints or ensure timely resolutions.
- Slow Response Times: Manual communication methods like phone calls, in-person meet-
ings, or emails often lead to slow response times, which could frustrate students and delay
action on requests, bookings, or complaints.
- Handling Growing Numbers: As the hostel grows (e.g., more rooms, more students), a man-
ual system becomes less manageable. The increasing volume of data (student profiles, book-
ings, fees, etc.) can overwhelm the existing infrastructure, leading to slower operations and
potential data inconsistencies.
7. Limited Scalability
- Difficult to Integrate: Manual systems often lack the flexibility to integrate with other mod-
ern tools or services (e.g., online payment gateways, student databases, or external applica-
tions), limiting the ability to adapt to new requirements.
1. Improved Efficiency:
- Automated processes such as room allocation, student registration, fee management, and
complaints handling reduce manual effort, save time, and eliminate human errors
- Tasks like generating reports, printing student profiles, or tracking payments can be done at
the click of a button, leading to faster decision-making.
- All student and hostel-related information is stored in a centralized database, making it easy
for administrators to access and manage data from a single location.
- Real-time data updates -enable both the admin and students to view current room availabil-
ity, booking status, and feedback, reducing conflicts and confusion.
- Admins can efficiently manage room availability, assign rooms based on occupancy.
- Students can select rooms based on availability and preferences, ensuring fair distribution
and reducing room allocation disputes.
5. Enhanced Security:
- Role-based access control ensures that only authorized users (admins and students) can ac-
cess specific features and data.
- Password encryption and secure login mechanisms safeguard sensitive information, reduc-
ing the risk of data breaches.
- The system automates routine tasks like fee tracking, student registration, and room alloca-
tion, which reduces the administrative burden on staff and minimizes the need for manual
interventions.
- Admins can focus on higher-level tasks such as managing complaints, overseeing hostel
maintenance, and improving student services.
- The system allows for easy submission and tracking of complaints, enabling faster resolu-
tions.
- Feedback can be gathered and analysed to continuously improve hostel services, ensuring
that students have a better experience during their stay.
- students and admins through features like feedback forms, complaints submission
8. Cost Savings:
- Reduced paper usage and manual record-keeping result in cost savings on printing and stor-
age.
- Administrative costs decrease as the need for manual labour in managing student profiles,
bookings, and finances is minimized.
• Technical feasibility
• Economic feasibility
• Operational feasibility
CHAPTER 3
SYSTEM DESIGN
3.1 INTRODUCTION
System design is the creative act of invention developing new inputs, a database
design files, methods, procedures and output for processing data to meet organization
objectives. The design phase is transition media from user-oriented document to a
document oriented to the programmers or database personnel.
• Acceptability
• Decision making ability
• Flexibility
• Simplicity
The design will determine the success of the system. System design is based the information
gathered during system analysis. System design goes through two phases of development:
• Logical Design - DFD shows the logical flow of system and defines the boundariesof the
system. For a candidate system, it describes the inputs, outputs, database and procedures
all in the format that make user’s requirements.
• Physical Design - This produces the working system by defining the design specifications
that tells programmers exactly what the candidates must do.
• Complain history
• Complaints
• Courses
• Feedback
• User Registration
• Rooms
• User log
• Admin log
An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how entities such as
people, objects or concepts relate to each other within a system. ER Diagrams are most often used
to design or debug relational databases in the fields of software engineering, business information
systems, education and research. Also known as ERDs or ER Models, they use a defined set of
symbols such as rectangles, diamonds, ovals and connecting lines todepict the interconnections
of entities, relationships and their attributes. They mirror grammatical structure, with entities as
nouns and relationships as verbs. Entity relationship diagrams are used in software engineering
during the planning stages of the software project.They help to identify different system elements
and their relationships with each other.
Unified Modelling Language (UML) is a general-purpose modelling language. The main aim of
UML is to define a standard way to visualize the way a system has been designed.It is quite similar
to blueprints used in other fields of engineering. UML is not a programming-language, it is rather
a visual language. We use UML diagrams to portray the behaviour and structure of a system. UML
helps software engineers, businessmen and system architects with modelling, design and analysis.
UML is linked with object-orienteddesign and analysis. UML makes the use of elements and forms
associations between them to form diagrams. Diagrams in UML are Class Diagram, Activity
Diagrams, Use Case Diagrams, Sequence Diagram.
Activity diagram is an important diagram in UML to describe the dynamic aspects of the
system. It is basically a flowchart to represent the flow from one activity to another activity.
The activity can be described as an operation of the system. The control flow is drawn from
one operation to another. This flow can be sequential, branched, or concurrent. Activity
diagrams deal with all type of flow control by using different elements such as fork, join,
etc.
Use case diagrams are usually referred to as behaviour diagrams used to describe a set of actions
(use cases) that some system or systems (subject) should or can perform in collaboration with
one or more external users of the system (actors). Each use case should provide some observable
and valuable result to the actors or other stakeholders of the system.
CHAPTER 4
SYSTEM ENVIORNMENT
4.1 INTRODUCTION
The system environment for the Hostel Management System (HMS) is composed of the following
components:
1. Hardware: This includes the servers, computers, and mobile devices used by both admins
and students to access the system. The servers will host the application and database, while
users (admins and students) will access the system from their desktop computers, laptops, or
mobile devices.
2. Operating System: A stable and secure operating system such as Windows, Linux, or
MacOS is required to run the Hostel Management System efficiently. The system should be
compatible with commonly used operating systems to ensure accessibility across different
platforms.
3. Database: A database management system like MySQL, Oracle, or SQL Server is essential
to store and manage data related to students, rooms, fees, complaints, feedback, and other
hostel-related information. The database ensures that all data is structured, easily retrievable,
and secure.
4. Web Server: A web server like Apache or IIS is required to host the Hostel Management
System and make it accessible over the internet. The web server ensures that the application
is available to users at any time through their web browsers.
5. Application Server: An application server such as Tomcat or JBoss is needed to execute the
application logic of the Hostel Management System. It handles requests from the client-side,
processes them, and returns the appropriate results to users.
6. Web Browser: A web browser such as Google Chrome, Mozilla Firefox, or Safari is required
by the users (both admins and students) to access the Hostel Management System online.
The web browser allows users to interact with the system via its graphical interface.
7. Network: A stable and secure network infrastructure is necessary to ensure smooth and fast
transmission of data between the various components of the system. This network enables
seamless communication between the client (users), the web server, application server, and
database, ensuring the system functions efficiently.
Software configuration is the software environment in which the project was shaped. The
programming language used, tools etc. are described here
• Processor - 15 or Higher
It is the standard markup language used to create and design documents on the World Wide
Web. It serves as the backbone of web development and provides a structure for creating con-
tent on web pages.
Document Structure:
The basic structure includes an opening <html> tag and a closing </html> tag.
Within the <html> tags, you have <head> and <body> sections.
Head Section:
The <head> section contains meta-information about the document, such as the title,
character set, and links to external resources.
The title of the page is defined with the <title> tag. Body
Section:
The <body> section contains the content of the document. Content
is structured using various HTML elements and tags. HTML Ele-
ments:
HTML elements consist of opening tags, content, and closing tags. Example:
<p>This is a paragraph.</p>
Common HTML Elements:
<p>: Paragraph
<img>: Image
Navigation is facilitated through elements like <nav> and list items. Images:
Images are added using the <img> tag, with the source (src) attribute pointing to the image
file.
Lists:
Lists can be either unordered (<ul>) or ordered (<ol>), containing list items (<li>). Ta-
bles:
Tables are created using the <table>, <tr>, and <td> tags for rows and cells.
Forms:
Forms are constructed using the <form> tag, with input fields, buttons, and other form
elements.
Comments:
Comments in HTML are written between <!-- and --> and are not displayed on the webpage.
HTML provides the basic structure and content for web pages, and it is often combined with
CSS (Cascading Style Sheets) and JavaScript to enhance the presentation and interactivity of
websites
Selectors:
Example: h1 { color: blue; } selects all <h1> elements and sets their text color to blue.
Properties:
CSS properties define the style of the selected elements. Example:
color, font-size, margin, padding, etc.
Values:
Properties are assigned values that determine the specific style. Example: font-size: 16px;, color:
#ff0000;, margin: 10px; Selectors and Declarations:
The box model describes how elements are laid out in terms of content, padding, border, and
margin.
CSS properties like width, height, padding, border, and margin control the box model.
Layout:
CSS allows for the creation of flexible and responsive layouts.
Properties like display, position, float, and flex are used for layout control. Colors:
Colors can be specified using names, hexadecimal codes (#rrggbb), RGB values, or HSL val-
ues.
The hierarchy of selectors and their specificity determine which styles take precedence.
More specific selectors override least specific ones.
Transitions and Animations:
CSS allows for smooth transitions and animations between different states of an element.
Properties like transition and animation are used for this purpose.
Media Queries:
Media queries enable the creation of responsive designs that adapt to different screen sizes
and devices.
CSS works in conjunction with HTML to separate content and presentation, providing greater
flexibility and maintainability in web development.
JAVASCRIPT
Features of JavaScript:
• JavaScript was created in the first place for DOM manipulation. Earlier websites
were mostly static, after JS was created dynamic Web sites were made.
• Functions in JS are objects. They may have properties and methods just like another
object. They can be passed as arguments in other functions.
• Can handle date and time.
• Performs Form Validation although the forms are created using HTML.
• No compiler is needed.
PHP
PHP: Hypertext Pre-processor (or simply PHP) is a general-purpose programming language origi-
nally designed for web development. It was created by Ramus Lerdorf in1994. The PHP refer-
ences implementation is now produced by The PHP Group. PHP originally stood for Personal
Home Page, but it now stands for the recursive initialism PHP: Hypertext Pre-processor.
PHP code may be executed with a command-line interface (CLI), embedded into HTML code,
or used in combination with various web template systems, web content management systems,
and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a
module in a web server or as a common gateway interface (CGI) executable. The web server
outputs the results of the interpreted and executed PHP code, which may be any type of data,
such as generated HTML code or binary image data. PHP can be used for many programming
tasks outside of the web context, such as standalone graphical applications and robotic drone
control.
OVERVIEW OF MYSQL
MySQL is a relational database that organizes data based on the relationships between tables
and fields. It is a type of Relational Data Base Management System (RDBMS), which stores
entries as rows within tables. Each row consists of a number of columns, which represent the
different attributes of the data record. The database-specific SQL programming language is
used to store and retrieve data from MySQL. SQL uses a series of discrete statements and is
intended to work with RDBMS systems. MySQL is known for its ability to store large tables
and vast amounts of data, as well as for its speed and reliability. It provides APIs for many
common programming languages and is packaged with several useful utilities. The MySQL
server stores data and response to requests from MySQL clients. The client is always packaged
with the server, but it can be used as a stand-alone application to communicate with remote da-
tabases. MySQL is used in many widely-known companies and is essential for those who want
to use Word Press. However, it is also used in web databases and data warehousing.
4.1.1 OPERATING SYSTEM
Windows is an operating system designed by Microsoft. The operating system is what allows
you to use a computer. Windows comes preloaded on most new personal computers (PCs),
which helps to make it the most popular operating system in the world.
Windows makes it possible to complete all types of everyday tasks on your computer. For ex-
ample, you can use Windows to browse the Internet, check your email, edit digital photos, lis-
ten to music, play games, and do much more.
Windows is also used in many offices because it gives you access to productivity tools such
as calendars, word processors, and spreadsheets. Microsoft released the first version of
Windows in the mid-1980s. There have been many versions of Windows since then, but the
most recent ones include Windows 10 (released in 2015), Windows 8 (2012), Windows 7
(2009), Windows Vista (2007), and Windows XP (2001). In this system environment we are
using windows 10. Every software tools are working well in this software development
CHAPTER 5
SYSTEM IMPLEMENTATION
5.1 INTRODUCTION
The implementation process begins with preparing a plan for the implementation of the sys-
tem. According to this plan, the activities are to be carried out, discussions made regarding
the equipment and resources and the additional equipment has to be acquired to implement
the new system. Implementation is the final and important phase. The system can be imple-
mented only after thorough testing is done and it is found to working according to the speci-
fication. This method also offers the greatest security since the old system can take over if the
errors are found or inability to handle certain type of transactions while using the new system.
The implementation plan includes a description of all activities that must occur to implement
the system and to put into operation. It indicates the personal responsible for the activities
and prepares a time chart for implementing the system.
A critical phase in the system life cycle is the successful implementation of the new system de-
sign. Implementation include all those activities that take place to convert the old system to
new one. It is primarily concerned with user training, site preparation and fail conversion. The
new system may be completely new, replacing and existing manual or automated system or it
may be major modification to existing. In either case, proper implementation becomes neces-
sary so that a reliable system based on the requirements of the organization can be provided.
Successful implementation may not guarantee improvements in the organization using the new
system, but improper installation can be prevented. The only training required to operate this
system is to develop a familiarity with the various features of the system and how to use it.
The user where trained to enter the correct data in the correct places. No special training, other
than this is required to operate the system. A person with little computer knowledge can oper-
ate the system. This is an area where the system analysts need to work with at most care
index.php
<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
{
$emailreg=$_POST['emailreg'];
$password=$_POST['password'];
$stmt=$mysqli->prepare("SELECT email,password,id FROM userregistration WHERE (email=?
|| regNo=?) and password=? ");
$stmt->bind_param('sss',$emailreg,$emailreg,$password);
$stmt->execute();
$stmt -> bind_result($email,$password,$id);
$rs=$stmt->fetch();
$stmt->close();
$_SESSION['id']=$id;
$_SESSION['login']=$emailreg;
$uip=$_SERVER['REMOTE_ADDR'];
$ldate=date('d/m/Y h:i:s', time());
if($rs)
{
$uid=$_SESSION['id'];
$uemail=$_SESSION['login'];
$ip=$_SERVER['REMOTE_ADDR'];
$geopluginURL='http://www.geoplugin.net/php.gp?ip='.$ip;
$addrDetailsArr = unserialize(file_get_contents($geopluginURL));
$city = $addrDetailsArr['geoplugin_city'];
$country = $addrDetailsArr['geoplugin_countryName'];
$log="insert into userLog(userId,userEmail,userIp,city,country)
values('$uid','$uemail','$ip','$city','$country')";
$mysqli->query($log);
if($log)
{
header("location:dashboard.php");
}
}
else
{
echo "<script>alert('Invalid Username/Email or password');</script>";
}
}
?>
<!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">
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>
login.php
<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
$email=$_POST['email'];
$password=$_POST['password'];
$stmt->bind_param('ss',$email,$password);
$stmt->execute();
$rs=$stmt->fetch();
$stmt->close();
$_SESSION['id']=$id;
$_SESSION['login']=$email;
$uip=$_SERVER['REMOTE_ADDR'];
if($rs)
$uid=$_SESSION['id'];
$uemail=$_SESSION['login'];
$ip=$_SERVER['REMOTE_ADDR'];
$geopluginURL='http://www.geoplugin.net/php.gp?ip='.$ip;
$addrDetailsArr = unserialize(file_get_contents($geopluginURL));
$city = $addrDetailsArr['geoplugin_city'];
$country = $addrDetailsArr['geoplugin_countryName'];
$mysqli->query($log);
if($log)
header("location:dashboard.php");
else
?>
<!doctype html>
<head>
<meta charset="UTF-8">
<script type="text/javascript">
function valid()
if(document.registration.password.value!= document.registration.cpassword.value)
document.registration.cpassword.focus();
return false;
return true;
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="row">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>
registration.php
<?php
session_start();
include('includes/config.php');
if(isset($_POST['submit']))
{
$regno=$_POST['regno'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gender=$_POST['gender'];
$contactno=$_POST['contact'];
$emailid=$_POST['email'];
$password=$_POST['password'];
$result ="SELECT count(*) FROM userRegistration WHERE email=? || regNo=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('ss',$email,$regno);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{
echo"<script>alert('Registration number or email id already registered.');</script>";
}else{
$query="insert
into userRegistration(regNo,firstName,middleName,lastName,gender,contactNo,email,passwor
d) values(?,?,?,?,?,?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt->bind_param('sssssiss',$regno,$fname,$mname,$lname,$gender,$contactno,$emailid,
$password);
$stmt->execute();
echo"<script>alert('Student Succssfully register');</script>";
}
}
?>
<!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>User 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 type="text/javascript">
function valid()
{
if(document.registration.password.value!= document.registration.cpassword.value)
{
alert("Password and Re-Type Password Field do not match !!");
document.registration.cpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<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="" name="registration" class="form-horizontal"
onSubmit="return valid();"
<div class="form-group">
<label class="col-sm-2 control-label"> Registration No : </label>
<div class="col-sm-8">
<input type="text" name="regno" id="regno" class="form-control" required="required"
onBlur="checkRegnoAvailability()">
<span id="user-reg-availability" style="font-size:12px;"></span>
</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">
<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"
onBlur="checkAvailability()" required="required">
<span id="user-availability-status" style="font-size:12px;"></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Password: </label>
<div class="col-sm-8">
<input type="password" name="password" id="password" class="form-control"
required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Confirm Password : </label>
<div class="col-sm-8">
<input type="password" name="cpassword" id="cpassword" class="form-control"
required="required">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function ()
{
event.preventDefault();
alert('error');
}
});
}
</script>
<script>
function checkRegnoAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'regno='+$("#regno").val(),
type: "POST",
success:function(data){
$("#user-reg-availability").html(data);
$("#loaderIcon").hide();
},
error:function ()
{
event.preventDefault();
alert('error');
}
});
}
</script>
</html>
create-room.php
<?php session_start();
error_reporting(0);
include('includes/config.php');
include('includes/checklogin.php');
check_login();
//code for add courses
if(isset($_POST['submit']))
{
$seater=$_POST['seater'];
$roomno=$_POST['rmno'];
$fees=$_POST['fee'];
$sql="SELECT room_no FROM rooms where room_no=?";
$stmt1 = $mysqli->prepare($sql);
$stmt1->bind_param('i',$roomno);
$stmt1->execute();
$stmt1->store_result();
$row_cnt=$stmt1->num_rows;;
if($row_cnt>0)
{
echo"<script>alert('Room alreadt exist');</script>";
}
else
{
$query="insert into rooms (seater,room_no,fees) values(?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt->bind_param('iii',$seater,$roomno,$fees);
$stmt->execute();
echo"<script>alert('Room has been added successfully');</script>";
}
}
?>
<!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>Create Room</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>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
The evolution of software and hardware technologies permits for complex software applications
in the present, but also with great requirements for processing speed and memory usage. Software
applications included in this category are operating systems, entertainment applications and multi-
media applications. With all this waste of resources, transparent to the user, the developer gives
particular importance to the optimization process, looking to maximize the performance of the
final product. The objective of software optimization is to obtain a new product or a new version
of an existing product, which presents a higher quality level. This grade is worked out based on the
levels obtained from the set of software characteristics or the established optimum criteria. These
are well defined and are followed throughout the whole process, directly measuring the obtained
levels. By direct comparison to the base levels or by determining aggregated values based on the
way multi-criteria models are composed, the level of improvement is obtained. One such model,
permits determining an aggregated quality level which measures the effects of multi-criteria opti-
mization. After the system implementation, the system is logically equivalent to the user require-
ments, so code validation and optimization is successfully validated against the system.
CHAPTER 6
SYSTEM TESTING
6.1. INTRODUCTION
Testing is a set of activities that can be planned and conducted systematically, which is aimed at
ensuring that the system works accurately and efficiently before live operations commence. Soft-
ware testing is the process used to measure the quality of developed computer software. Usually,
quality is constrained to such topics as correctness, completeness, security, but can also include
more technical requirements as described under the ISO standard ISO 9126, such as capability,
reliability, efficiency, portability, maintainability, compatibility, and usability. Testing is a pro-
cess of technical investigation, performed on behalf of stakeholders, that is intended to reveal
quality-related information about the product concerning the context in which it is intended to
operate. An important point is that software testing should be distinguished from the separate
discipline of Software Quality Assurance (SQA), which encompasses all business process areas,
not just testing.
There are many approaches to software testing, but effective testing of complex products is
essentially a process of investigation, not merely a matter of creating and following a routine
procedure. One definition of testing is "the process of questioning a product to evaluate it", where
the "questions" are operations, the tester attempts to execute with the product, and the product
answers with its behaviour in reaction to the probing of the tester.
Unit testing is a fundamental practice in software development that focuses on verifying the cor-
rectness and functionality of individual components or units of code. These units can be func-
tions, methods, or even small modules. The primary goal of unit testing is to ensure that each
unit works as intended and meets the specified requirements.
Developers typically perform unit testing during the early stages of development, before inte-
grating the code into the larger system.
2. Automated Testing:
➢ Unit tests are automated, meaning they can be executed automatically
whenever code changes occur.
➢ Whenever a developer modifies a unit, the associated tests run to ensure that
the changes do not break existing functionality.
➢ They execute the tests to verify that the unit behaves as expected.
➢ If any issues are found, developers fix them promptly.
Integration testing is a crucial phase in the software testing lifecycle that focuses on the inter-
faces between different software modules. It is performed after unit testing and aims to identify
and rectify issues that arise when individual software modules interact with each other. The pri-
mary objective of integration testing is to ensure the seamless functioning of the software appli-
cation as a whole by validating the communication paths and interactions between components.
Integration testing plays a vital role in delivering a robust and reliable software product. It helps
in detecting interface defects and inconsistencies in the data exchange between modules. By
performing integration testing, teams can ensure that the integrated components of the system
work in harmony, thereby reducing the risk of post-deployment failures and enhancing the overall
quality of the software. Furthermore, it aids in identifying and addressing issues early in the
development cycle, which can save time and resources in the long run.
Test Data Ensure valid data is provided for all mandatory fields.
Status Success
TEST CASE: 2
Expected Result The user successfully logs in and is redirected to the user
dashboard.
Status Success
TEST CASE: 3
Status Success
CHAPTER 7
SYSTEM MAINTENANCE
7.1.INTRODUCTION
Maintenance is a critical aspect of the software industry, involving the captive use of system
resources and the restoration of systems to their original conditions. It encompasses a broad spec-
trum of activities, including rectifying coding and design errors, updating documentation and test
data, and enhancing user support. Maintenance is an ongoing process that continues after suc-
cessful implementation, persisting until the product is reengineered or deployed on another plat-
form. It addresses reported problems, interface changes with other software or hardware, and the
overall improvement of software.
7.2. MAINTENANCE
The primary objectives of maintenance are to ensure the continuous operation of the system
without any bugs and to accommodate environmental changes that may impact the computer or
software system. In today's rapidly changing software landscape, systems must be adaptable to
these changes. Maintenance is a pervasive aspect of system development, with analysts and pro-
grammers spending a significant amount of time maintaining programs and packages, accounting
for 60-80% of the total system development cost.
Challenges in maintenance arise because software is a handmade product designed with lim-
ited standards. The process involves implementing modifications, accepting the modification by
confirming its effectiveness with the requester, and ensuring the modification provides a solu-
tion. Maintenance programmers must analyze, confirm, check validity, investigate, propose solu-
tions, document requests and proposals, and obtain the necessary authorizations for modifica-
tions.
Types of Maintenance:
➢ Corrective Maintenance
➢ Perfective Maintenance
➢ Adaptive Maintenance
CORRECTIVE MAINTENANCE
Corrective maintenance is the most common approach, addressing failures and downtime in pro-
duction. However, it has limitations, as the reliability of systems maintained through this ap-
proach is unknown and cannot be measured. It is suitable for items where the consequences of
failure are not significant, and the cost of maintenance is not greater than preventive mainte-
nance.
PERFECTIVE MAINTENANCE
ADAPTIVE MAINTENANCE
Adaptive maintenance deals with changes initiated due to moving the software to a different
hardware or software platform. It is driven by the need to accommodate modifications in the
software system's environment. Changes to the environment necessitate corresponding modifica-
tions to the software.
CHAPTER 8
FUTURE ENHANCEMENT AND
SCOPE OF FURTHER
DEVELOPMENT
8.1 INTRODUCTION
The Hostel Management System (HMS) can undergo significant improvements and expansions
in the future to make it more efficient, user-friendly, and scalable. One of the key areas for future
development is the integration with academic and financial systems of educational institutions.
By linking the hostel management system with the institution’s academic and financial databases,
administrators can streamline processes such as student registration, and course allocations.
Additionally, syncing student information between systems would eliminate the need for
redundant data entry, reducing errors and improving efficiency in managing student records
across multiple platforms. Another important future development is the introduction of a mobile
application. With an increasing reliance on smartphones, a dedicated mobile app would offer
significant advantages in terms of accessibility. Students could easily book or change hostel
rooms, manage their profiles, check room availability, lodge complaints, and provide feedback
directly from their smartphones. Admins could also manage operations such as student
registration, room allocation, and complaints handling via the app, enabling them to perform their
duties anytime and from anywhere. This mobile app could further include features like push
notifications, reminding students about room bookings, or complaint updates, making
communication more efficient. Additionally, the integration of advanced reporting and analytics
tools would greatly enhance the decision-making process. Admins would be able to generate
detailed reports on hostel occupancy, student demographics, and feedback. These insights could
be used to predict trends, such as peak room booking periods, or common complaints, allowing
hostel management to plan better for the future. Predictive analytics could also help identify
potential issues, such as maintenance needs or overcrowding, before they become critical,
improving overall operational efficiency. Moving forward, cloud integration would be a strategic
move for the system. Hosting the HMS on the cloud would provide greater scalability, enabling
the system to handle an increasing number of users and hostels with ease. Cloud services can
offer automatic backups, enhanced data security, and access from anywhere with an internet
connection. This would be particularly beneficial for institutions with multiple campuses or
hostels, allowing centralized management and easier coordination between various hostel sites.
Cloud integration would also make the system more resilient, as it would be less dependent on
local hardware and infrastructure. This would significantly reduce administrative overhead and
provide a more seamless experience for both students and staff. In conclusion, the future of the
Hostel Management System holds great potential for enhancement. By embracing modern
technologies such as cloud computing, mobile apps, AI, and advanced reporting tools, the system
can become more efficient, scalable, and user-centric, ultimately improving the overall
experience for both administrators and students.
While the Hostel Management System offers many benefits, it also has some limitations:
1. Dependency on Technology
- The system relies heavily on technology, which means that any issues such as server
downtime, software bugs, or system failures can disrupt hostel operations.
- In areas with poor internet connectivity, remote access to the system may be limited or slow.
Future enhancements of the *Hostel Management System* (HMS) can focus on improving
efficiency, user experience, and scalability. Some key improvements include:
1. AI Integration: AI can be used for predictive analytics, smart room allocation, and identifying
trends in student behaviour to optimize hostel operations and improve resource management.
2. Cloud-Based Hosting: Migrating the system to the cloud can enhance scalability, provide easier
data management, and improve system reliability and access from anywhere.
3.IoT Integration: Smart features such as room temperature control, energy usage monitoring, and
automated maintenance alerts can be added using IoT devices to enhance comfort and efficiency.
4. Advanced Analytics and Reporting: More advanced reporting tools, allowing administrators to
generate customizable reports for better decision-making and resource allocation.
5. Enhanced Complaint Management: Integrating AI-powered chatbots and real-time tracking of
complaints for faster resolutions and better student support.
6. Biometric and Security: To improve security, the system could incorporate biometric logins or
two-factor authentication for added protection of sensitive data.
7. Multi-Language Support: To cater to international students, adding language options could
make the system more accessible to a global audience.
CHAPTER 9
CONCLUSION
In conclusion, the Hostel Management System provides an effective and efficient solution to
streamline the complex tasks associated with managing hostel operations. By automating
processes such as student registration, room allocation, fee management, and complaint
handling, the system reduces administrative burdens, minimizes errors, and enhances operational
efficiency. The integration of a user-friendly interface, secure data management, and real-time
updates improves communication and transparency between students and administrators.
Although there are limitations, such as dependency on technology and the need for regular
maintenance, the system offers significant benefits in terms of time-saving, accuracy, and
scalability. With future enhancements, including mobile apps, AI, IoT integration, and advanced
reporting, the system can evolve further to meet the growing needs of educational institutions,
offering a more personalized, efficient, and secure hostel experience.
System maintenance
System Maintenance for the Hostel Management System (HMS) ensures that the system runs
smoothly and continues to meet the needs of both administrators and students over time. Here’s a
simple breakdown:
1. Software Updates
- Regularly update the system to fix bugs, add new features, and improve security.
2. Database Management
- Keep the system’s data safe by regularly backing it up, organizing it, and making sure it’s up-
to-date and accurate.
3. Security
- Protect the system from hackers by updating security settings, monitoring for risks, and using
encryption to keep sensitive student data safe.
4. Hardware and Infrastructure
- Ensure the servers and network are running properly, so the system doesn't experience
downtime or slow performance.
5. Bug Fixing
- Address any technical issues, like errors in room booking or payment processing, to keep the
system running without problems.
6. User Support
- Provide training and support to help users (students, staff, and admins) use the system
effectively and solve any problems they encounter.
7. Performance Optimization
- Make sure the system loads quickly and handles a lot of users without slowing down,
especially during busy periods like fee payment time.
8. Backups and Recovery
- Regularly back up data to ensure it can be restored if something goes wrong, like a system
crash or data loss.
9. Compliance
- Keep the system in line with data protection laws and university policies, ensuring student
data is handled properly.
10. Continuous Improvement
- Collect feedback from users and make regular improvements to the system to keep it useful
and up-to-date with new needs.
CHAPTER 10
BIBLIOGRAPHY
BOOKS
➢ Web Programming, Chris Bates, 3rd Edition; Pub: John Wiley & Sons
WEBSITES
➢ ChatGPT ( https://chat.openai.com )
➢ BingAi ( https://www.bing.com )
➢ W3schools ( https://www.w3schools.com/ )
➢ Youtube ( https://youtube.com )
➢ Geekforgeeks ( https://www.geeksforgeeks.org/ )
APPENDIX
SAMPLE CODE
check_availability.php
<?php
require_once("includes/config.php");
//For Email
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {
echo "error : You did not enter a valid email.";
}
else {
$result ="SELECT count(*) FROM userRegistration WHERE email=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$email);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{
echo "<span style='color:red'> Email already exist. Please try again.</span>";
}
}
}
// For Registration Number
if(!empty($_POST["regno"])) {
$regno= $_POST["regno"];
$result ="SELECT count(*) FROM userRegistration WHERE regNo=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$regno);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{
echo "<span style='color:red'> Registration number already exist. Please try again .</span>";
}
}
// For old Password
if(!empty($_POST["oldpassword"]))
{
$pass=$_POST["oldpassword"];
$result ="SELECT password FROM userregistration WHERE password=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$pass);
$stmt->execute();
manage-students.php
<?php
session_start();
include('includes/config.php');
include('includes/checklogin.php');
check_login();
if(isset($_GET['del']))
{
$id=intval($_GET['del']);
}
?>
<!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>Manage Rooms</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 language="javascript" type="text/javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr,'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,cop
yhistory=yes,width='+510+',height='+430+',left='+left+',
top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title" style="margin-top:4%">Manage Registred Students</h2>
<div class="panel panel-default">
<div class="panel-heading">All Room Details</div>
<div class="panel-body">
<table id="zctb" class="display table table-striped table-bordered table-hover"
cellspacing="0" width="100%">
<thead>
<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Staying From </th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Staying From </th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php
$aid=$_SESSION['id'];
$ret="select * from registration";
$stmt= $mysqli->prepare($ret) ;
//$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;
while($row=$res->fetch_object())
{
?>
<tr><td><?php echo $cnt;;?></td>
<td><?php echo $row->firstName;?><?php echo $row->middleName;?><?php echo $row-
>lastName;?></td>
<td><?php echo $row->regno;?></td>
<td><?php echo $row->contactno;?></td>
<td><?php echo $row->roomno;?></td>
<td><?php echo $row->seater;?></td>
<td><?php echo $row->stayfrom;?></td>
<td>
<a href="student-details.php?regno=<?php echo $row->regno;?>" title="View Full Details"><i
class="fa fa-desktop"></i></a>
<a href="manage-students.php?del=<?php echo $row->regno;?>" title="Delete Record"
onclick="return confirm('Do you want to delete');"><i class="fa fa-close"></i></a></td>
</tr>
<?php
$cnt=$cnt+1;
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>