You are on page 1of 66

STUDENT MANAGEMENT SYSTEM

A Report on Student Management System

Group Members:
Name Roll Number
Ankit Yadav 23401218026
Amit Sinha 23401218030
Shivam Shourya 23401218008
Manikchandra Kumar 23401218018

BCA 5th Semester Minor Project


STUDENT MANAGEMENT SYSTEM

Group members roles in this project


Ankit Yadav- System design, Coding & Database creation
Amit Sinha- Data Entry & Testing
Shivam Shourya – Design Guidance & Documentation
Manikchandra Kumar- Data Entry
STUDENT MANAGEMENT SYSTEM

Index
1. Acknowledgement
2. Abstract
3. Introduction
4. System Analysis
5. System requirements & Specifications
6. System Design
7. System Screenshots
8. Conclusion
9. Bibliography
10.Source Codes
STUDENT MANAGEMENT SYSTEM

Acknowledgement
The success and eventual result of this project involved a lot of support
and help from a lot of individuals, and we are immensely grateful to
have accomplished this during the culmination of our project work.
We appreciate and thank Ms. Moumita Roy for giving us the chance to
do this project work and for giving us all the support and advice that
made us complete the project on time.
STUDENT MANAGEMENT SYSTEM

ABSTRACT
Our project explains about the student management. This project mainly explains the various
actions related to student details. This project shows some ease in adding, editing and deleting the student
details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks
of the students.

Our project includes

• Student Registration
• Subject Allocation
• Teacher Registration
• Adding Remarks
• Managing Student details
STUDENT MANAGEMENT SYSTEM

1. INTRODUCTION
Student Management System is software which is helpful for students as well as the school
authorities. In the current system all the activities are done manually. It is very time consuming
and costly. Our Student Management System deals with the various activities related to the
students.

There are mainly 3 modules in this software

• Admin module

• Student Module

• Teacher Module

In the Software we can register as a user and user has of two types, student and
administrator. Administrator has the power to add new user and can edit and delete a user. A
student can register as user and can check his details ,and can send updated requests. The
administrator can add edit and delete remarks for students.
STUDENT MANAGEMENT SYSTEM

2. SYSTEM ANALYSIS

2.1 EXISTING SYSTEM:

System Analysis is a detailed study of the various operations performed by a system


and their relationships within and outside of the system. Here the key question is- what all
problems exist in the present system? What must be done to solve the problem? Analysis begins
when a user or manager begins a study of the program using existing system.

During analysis, data collected on the various files, decision points and transactions
handled by the present system. The commonly used tools in the system are Data Flow Diagram,
interviews, etc. Training, experience and common sense are required for collection of relevant
information needed to develop the system. The success of the system depends largely on how
clearly the problem is defined, thoroughly investigated and properly carried out through the choice
of solution. A good analysis model should provide not only the mechanisms of problem
understanding but also the frame work of the solution. Thus it should be studied thoroughly by
collecting data about the system. Then the proposed system should be analyzed thoroughly in
accordance with the needs.

System analysis can be categorized into four parts.

✓ System planning and initial investigation


✓ Information Gathering
✓ Applying analysis tools for structured analysis
✓ Feasibility study
✓ Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the student and want
to enter the details of the student and the marks manually. In this system only the teacher or the
school authority views the mark of the student and they want to enter the details of the student.
This is time consuming and has much cost.
STUDENT MANAGEMENT SYSTEM

PROPOSED SYSTEM

In our proposed system we have the provision for adding the details of the students by
the admin. So the details can’t be misused. Another advantage of the system is that it is very easy
to edit the details of the student and delete a student when it found unnecessary. The marks

Our proposed system has several advantages

➢ User friendly interface


➢ Fast access to database
➢ Less error
➢ More Storage Capacity
➢ Search facility
➢ Look and Feel Environment

All the manual difficulties in managing the student details in a school or college have
been rectified by implementing computerization.
STUDENT MANAGEMENT SYSTEM

2.3 FEASIBILITY ANALYSIS

Whatever we think need not be feasible .It is wise to think about the feasibility of any
problem we undertake. Feasibility is the study of impact, which happens in the organization by the
development of a system. The impact can be either positive or negative. When the positives
nominate the negatives, then the system is considered feasible. Here the feasibility study can be
performed in two ways such as technical feasibility and Economical Feasibility.

Technical Feasibility:

We can strongly says that it is technically feasible, since there will not be much difficulty in
getting required resources for the development and maintaining the system as well. All the
resources needed for the development of the software as well as the maintenance of the same is
available in the organization here we are utilizing the resources which are available already.

Economical Feasibility

Development of this application is highly economically feasible .The organization needed


not spend much money for the development of the system already available. The only thing is
to be done is making an environment for the development with an effective supervision. If we
are doing so, we can attain the maximum usability of the corresponding resources .Even after
the development, the organization will not be in condition to invest more in the organization
.Therefore, the system is economically feasible.
STUDENT MANAGEMENT SYSTEM

3. SYSTEM REQUIREMENTS SPECIFICATION

3.1 Hardware Requirements

Processor : Pentium III 630MHz

RAM : 4 GB

Hard Disk : 6 GB

Monitor : Color monitor

Key Board : 104 Keys

3.2 Software Requirements

Operating System : Windows 7,

Windows 8,

Windows 10.

Software & Language : HTML,CSS, PHP, Java SourceCode , XAMPP

Database : MySQL.
STUDENT MANAGEMENT SYSTEM

4 SYSTEM DESIGN

4.1 Introduction

System design is a process through which requirements are translated into a


representation of software. Initially the representation depicts a holistic view of software.
Subsequent refinement leads to a design representation that is very close to source code. Design is
a place where quality fostered in software development. Design provides us with representation of
software that can be assessed for quality; this is the only way that can accurately translate the
customer requirements into finished software product or system. System design serves as the
foundation for all software engineering and software maintenance steps that follow.

We look the design process from three distinct perspectives:

• Conceptual Design
• Logical Design
• Physical Design

The higher view is the conceptual view, followed by the logical view and finally
the physical view. In designing an application, we generally begin and end each phase in a
sequentially order, although they may overlap one another along the way.

Conceptual Design:
STUDENT MANAGEMENT SYSTEM

Conceptual Design is the process of acquiring and evaluating, documenting and then
validating what the user envisions to be the business relation. It identifies the user and business
requirements of the application and leads to a business solution as seen by the user.

All applications are built to solve business problems, and it is important to pay close
attention to principle that the business need drives application development. At any point in the
design process, the current state of the design should be directly traceable to a business problem
and requirements.

To achieve this conceptual design is driven by developing usage scenarios. These


scenarios are a direct representation of the user’s view of the solution to a specific business
problem

Logical Design

Logical Design derives business objects and their related services directly from
these usage scenarios. The logical view of the solution provides a basis for evaluating different
physical options. It also formalizes the solution for the project team.

The idea of the application is that the system first emerges in logical design. Its
boundaries and business objects and it contains the system definition. Logical design specifies the
interfaces between the system and external entities,such as users and other systems. Within a
system there may be a number of sub-systems, and these boundaries are also specified.

Logical System Design consists of the following steps:

• Input/Output Specifications
• File Specifications
• Processing Specifications
Logical design should be technologically independent as possible, in order to separate system
behavior issues from system implementation issues. Implementation constraints should only be
considered only after the project team verifies that the essential behavior has been incorporated
onto a logical design. This approach does not establish a technical direction until the system is well
understood and documented.
STUDENT MANAGEMENT SYSTEM

Physical Design

The purpose of Physical Design is to translate the logical design into a solution
that can be implemented effectively, according to performance, administration and development
process requirements. This physical view should correctly implement the desired system behavior
while meeting the constraints imposed by the technology.

In Physical Design, the perspective shifts from an abstraction of system behavior


to an implementation of the behavior. Whereas the logical design is largely technology
independent, physical design is necessarily tied to chosen set of technologies, these being the
hardware and software on which the application will run.

Physical design consists of the following steps:

1. Design the physical media

• Specify input/output media.


• Design the database and specify backup procedures.
• Design physical information flow through the system.
2. Plan the system implementation

• Prepare a conversion schedule target date.


• Determine training procedure, courses and timetable.

3. Device a test and implementation plan.

4. Specify any new Hardware/Software usage.

5. Update benefits, costs, conversion date and system constraints.


STUDENT MANAGEMENT SYSTEM

USE CASE DIAGRAM


STUDENT MANAGEMENT SYSTEM

User Module:

➢ In the Software we can register as a user and user has of three types, student, teacher and
administrator.
➢ Administrator has the power to add new user and can edit and delete a user. A student can
register as user and can view his profile and ask for a update request
➢ The teacher can add, edit and delete remarks for the student. All the users can see the
remarks

Student Module:

➢ In this student module Administrator will register the details of the student.
➢ Administrator can view the details of the student by giving roll number.
➢ Administrator can also edit the details of the student by giving roll number
➢ Administrator can also delete the details of the student by giving roll number
STUDENT MANAGEMENT SYSTEM

SCREENS

Login

Description:

Here we will give username and password to Login in to the Student Screen, Teacher screen or
Adminstrator Screen.

Add New Student:


STUDENT MANAGEMENT SYSTEM

Description:

Here the admin can add a new student by adding his/her details

Edit Student Details :


STUDENT MANAGEMENT SYSTEM

Description:

Here the admin can edit the details of a students on the basis of hir/her request .

Delete Student:

Description:

Here the admin can delete a student by entering his roll number.

View Student details:


STUDENT MANAGEMENT SYSTEM

Description:

The admin can view the details of a student by entering the roll number.

Add New Teacher:


STUDENT MANAGEMENT SYSTEM

View Teachers:
STUDENT MANAGEMENT SYSTEM

Database :
STUDENT MANAGEMENT SYSTEM

Conclusion
This project is just a basic user friendly online management system so
everyone can have the experience of a management system and get
comfortable using basic functions , which will help them using some
advanced systems .

The objective of software planning is to provide a frame work that


enables the manger to make reasonable estimates made within a limited
time frame at the beginning of the software project and should be
updated regularly as the project progresses.
STUDENT MANAGEMENT SYSTEM

Bibliography
• https://www.google.com

• https://www.w3schools.com/php/php_mysql_select.asp
STUDENT MANAGEMENT SYSTEM

Source Codes
login.php :

<!DOCTYPE html>

<html>

<head>

<title>Login Page</title>

<link rel="stylesheet" type="text/css" href="bootstrap-4.4.1/css/bootstrap.min.css">

<script type="text/javascript" src="bootstrap-4.4.1/js/juqery_latest.js"></script>

<script type="text/javascript" src="bootstrap-4.4.1/js/bootstrap.min.js"></script>

</head>

<body>

<center><br><br>

<h3 style="background-color:powderblue;">Student Management System</h3><br>

<form action="" method="POST">

<input type="submit" name="admin_login" value="Admin Login" required>

<input type="submit" name="student_login" value="Student Login" required>

<input type="submit" name="teacher_login" value="Teacher Login" required>

</form>

<?php
STUDENT MANAGEMENT SYSTEM

if(isset($_POST['admin_login'])){

header("Location: admin_login.php");

if(isset($_POST['student_login'])){

header("Location: student_login.php");

if(isset($_POST['teacher_login'])){

header("Location: teacher_login.php");

?>

</center>

</body>

</html>

admin_login.php :

<!DOCTYPE html>

<html>

<head>

<title>Admin Login</title>

<link rel="stylesheet" type="text/css" href="bootstrap-4.4.1/css/bootstrap.min.css">

<script type="text/javascript" src="bootstrap-4.4.1/js/juqery_latest.js"></script>


STUDENT MANAGEMENT SYSTEM

<script type="text/javascript" src="bootstrap-4.4.1/js/bootstrap.min.js"></script>

</head>

<body>

<center><br><br>

<h3>Admin LogIn Page</h3><br>

<form action="" method="post">

Email ID: <input type="text" name="email" required><br><br>

Password: <input type="password" name="password" required><br><br>

<input type="submit" name="submit" value="LogIn">

</form><br>

<?php

session_start();

if(isset($_POST['submit'])){

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

$query = "select * from login where email = '$_POST[email]'";

$query_run = mysqli_query($connection,$query);

while ($row = mysqli_fetch_assoc($query_run)) {

if($row['email'] == $_POST['email']){
STUDENT MANAGEMENT SYSTEM

if($row['password'] == $_POST['password']){

$_SESSION['name'] = $row['name'];

$_SESSION['email'] = $row['email'];

header("Location: admin_dashboard.php");

else{

?>

<span>Wrong Password !!</span>

<?php

} }

?>

</center>

</body>

</html>

admin_dashboard.php :

<!DOCTYPE html>

<html>

<head>
STUDENT MANAGEMENT SYSTEM

<title>Admin Dashboard</title>

<link rel="stylesheet" type="text/css" href="bootstrap-4.4.1/css/bootstrap.min.css">

<script type="text/javascript" src="bootstrap-4.4.1/js/juqery_latest.js"></script>

<script type="text/javascript" src="bootstrap-4.4.1/js/bootstrap.min.js"></script>

<style type="text/css">

#header{

height: 10%;

width: 100%;

top: 2%;

background-color: black;

position: fixed;

color: white;

#left_side{

height: 75%;

width: 15%;

top: 10%;

position: fixed;

#right_side{
STUDENT MANAGEMENT SYSTEM

height: 75%;

width: 80%;

background-color: whitesmoke;

position: fixed;

left: 17%;

top: 21%;

color: red;

border: solid 1px black;

#top_span{

top: 15%;

width: 80%;

left: 17%;

position: fixed;

#td{

border: 1px solid black;

padding-left: 2px;

text-align: left;

width: 200px;
STUDENT MANAGEMENT SYSTEM

</style>

<?php

session_start();

$name = "";

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

?>

</head>

<body>

<div id="header"><br>

<center>Student Management System


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email: <?php echo
$_SESSION['email'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name:<?php echo
$_SESSION['name'];?>

<a href="logout.php">Logout</a>

</center>

</div>

<span id="top_span"><marquee>Note:- This portal is open till 31 March 2021...Plz edit


your information, if wrong.</marquee></span>

<div id="left_side">

<br><br><br>
STUDENT MANAGEMENT SYSTEM

<form action="" method="post">

<table>

<tr>

<td>

<input type="submit" name="search_student"


value="Search Student">

</td>

</tr>

<tr>

<td>

<input type="submit" name="edit_student"


value="Edit Student">

</td>

</tr>

<tr>

<td>

<input type="submit" name="add_new_student"


value="Add New Student">

</td>

</tr>

<tr>
STUDENT MANAGEMENT SYSTEM

<td>

<input type="submit" name="delete_student"


value="Delete Student">

</td>

</tr>

<tr>

<td>

<input type="submit" name="show teacher"


value="Show Teachers">

</td>

</tr>

<tr>

<td>

<input type="submit" name="add_teacher"


value="Add Teacher">

</td>

</tr>

</table>

</form>

</div>

<div id="right_side"><br><br>
STUDENT MANAGEMENT SYSTEM

<div id="demo">

<!-- #Code for search student---Start-->

<?php

if(isset($_POST['search_student']))

?>

<center>

<form action="" method="post">

&nbsp;&nbsp;<b>Enter Roll No:</b>&nbsp;&nbsp; <input


type="text" name="roll_no">

<input type="submit"
name="search_by_roll_no_for_search" value="Search">

</form><br><br>

<h4><b><u>Student's details</u></b></h4><br><br>

</center>

<?php

if(isset($_POST['search_by_roll_no_for_search']))

$query = "select * from students where roll_no =


'$_POST[roll_no]'";
STUDENT MANAGEMENT SYSTEM

$query_run = mysqli_query($connection,$query);

while ($row = mysqli_fetch_assoc($query_run))

?>

<table>

<tr>

<td>

<b>Roll No:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['roll_no']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Name:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['name']?>" disabled>
STUDENT MANAGEMENT SYSTEM

</td>

</tr>

<tr>

<td>

<b>Father's Name:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['father_name']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Class:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['class']?>" disabled>

</td>

</tr>

<tr>
STUDENT MANAGEMENT SYSTEM

<td>

<b>Mobile:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['mobile']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Email:</b>

</td>

<td>

<input type="text"
value="<?php echo $row['email']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Password:</b>

</td>
STUDENT MANAGEMENT SYSTEM

<td>

<input type="password"
value="<?php echo $row['password']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Remark:</b>

</td>

<td>

<textarea rows="3" cols="40"


disabled><?php echo $row['remark']?></textarea>

</td>

</tr>

</table>

<?php

?>

<!-- #Code for edit student details---Start-->

<?php
STUDENT MANAGEMENT SYSTEM

if(isset($_POST['edit_student']))

?>

<center>

<form action="" method="post">

&nbsp;&nbsp;<b>Enter Roll No:</b>&nbsp;&nbsp; <input


type="text" name="roll_no">

<input type="submit" name="search_by_roll_no_for_edit"


value="Search">

</form><br><br>

<h4><b><u>Student's details</u></b></h4><br><br>

</center>

<?php

if(isset($_POST['search_by_roll_no_for_edit']))

$query = "select * from students where roll_no = $_POST[roll_no]";

$query_run = mysqli_query($connection,$query);

while ($row = mysqli_fetch_assoc($query_run))

?>
STUDENT MANAGEMENT SYSTEM

<form action="admin_edit_student.php" method="post">

<table>

<tr>

<td>

<b>Roll No:</b>

</td>

<td>

<input type="text" name="roll_no"


value="<?php echo $row['roll_no']?>">

</td>

</tr>

<tr>

<td>

<b>Name:</b>

</td>

<td>

<input type="text" name="name"


value="<?php echo $row['name']?>">

</td>

</tr>

<tr>
STUDENT MANAGEMENT SYSTEM

<td>

<b>Father's Name:</b>

</td>

<td>

<input type="text"
name="father_name" value="<?php echo $row['father_name']?>">

</td>

</tr>

<tr>

<td>

<b>Class:</b>

</td>

<td>

<input type="text" name="class"


value="<?php echo $row['class']?>">

</td>

</tr>

<tr>

<td>

<b>Mobile:</b>

</td>
STUDENT MANAGEMENT SYSTEM

<td>

<input type="text" name="mobile"


value="<?php echo $row['mobile']?>">

</td>

</tr>

<tr>

<td>

<b>Email:</b>

</td>

<td>

<input type="text" name="email"


value="<?php echo $row['email']?>">

</td>

</tr>

<tr>

<td>

<b>Password:</b>

</td>

<td>

<input type="password"
name="password" value="<?php echo $row['password']?>">
STUDENT MANAGEMENT SYSTEM

</td>

</tr>

<tr>

<td>

<b>Remark:</b>

</td>

<td>

<textarea rows="3" cols="40"


name="remark"><?php echo $row['remark']?></textarea>

</td>

</tr><br>

<tr>

<td></td>

<td>

<input type="submit" name="edit"


value="Save">

</td>

</tr>

</table>

</form>

<?php
STUDENT MANAGEMENT SYSTEM

?>

<!-- #Code for Delete student details---Start-->

<?php

if(isset($_POST['delete_student']))

?>

<center>

<form action="delete_student.php" method="post">

&nbsp;&nbsp;<b>Enter Roll No:</b>&nbsp;&nbsp; <input


type="text" name="roll_no">

<input type="submit" name="search_by_roll_no_for_delete"


value="Delete">

</form><br><br>

</center>

<?php

?>

<?php
STUDENT MANAGEMENT SYSTEM

if(isset($_POST['add_new_student'])){

?>

<center><h4>Fill the given details</h4></center>

<form action="add_student.php" method="post">

<table>

<tr>

<td>

<b>Roll No:</b>

</td>

<td>

<input type="text" name="roll_no"


required>

</td>

</tr>

<tr>

<td>

<b>Name:</b>

</td>

<td>

<input type="text" name="name"


required>
STUDENT MANAGEMENT SYSTEM

</td>

</tr>

<tr>

<td>

<b>Father's Name:</b>

</td>

<td>

<input type="text"
name="father_name" required>

</td>

</tr>

<tr>

<td>

<b>Class:</b>

</td>

<td>

<input type="text" name="class"


required>

</td>

</tr>

<tr>
STUDENT MANAGEMENT SYSTEM

<td>

<b>Mobile:</b>

</td>

<td>

<input type="text" name="mobile"


required>

</td>

</tr>

<tr>

<td>

<b>Email:</b>

</td>

<td>

<input type="text" name="email"


required>

</td>

</tr>

<tr>

<td>

<b>Password:</b>

</td>
STUDENT MANAGEMENT SYSTEM

<td>

<input type="password"
name="password" required>

</td>

</tr>

<tr>

<td>

<b>Remark:</b>

</td>

<td>

<textarea rows="3" cols="40"


placeholder="Optional" name="remark"></textarea>

</td>

</tr>

<tr>

<td></td>

<td><br><input type="submit" name="add"


value="Add Student"></td>

</tr>

</table>

</form>
STUDENT MANAGEMENT SYSTEM

<?php

?>

<?php

if(isset($_POST['show_teacher']))

?>

<center>

<h5>Teacher's Details</h5>

<table>

<tr>

<td id="td"><b>Serial No</b></td>

<td id="td"><b>Name</b></td>

<td id="td"><b>Subjects</b></td>

</tr>

</table>

</center>

<?php

$query = "select * from teachers";

$query_run = mysqli_query($connection,$query);
STUDENT MANAGEMENT SYSTEM

while ($row = mysqli_fetch_assoc($query_run))

?>

<center>

<table style="border-collapse: collapse;border: 2px


solid black;">

<tr>

<td id="td"><?php echo


$row['teacher_id']?></td>

<td id="td"><?php echo


$row['name']?></td>

<td id="td"><?php echo


$row['subject']?></td>

</tr>

</table>

</center>

<?php

?>

<?php

if(isset($_POST['add_teacher']))
STUDENT MANAGEMENT SYSTEM

?>

<center><h4>Fill the given details</h4></center>

<form action="add_teacher.php" method="post">

<table>

<tr>

<td>

<b>Serial No:</b>

</td>

<td>

<input type="text"
name="teacher_id" required>

</td>

</tr>

<tr>

<td>

<b>Name:</b>

</td>

<td>

<input type="text" name="name"


required>
STUDENT MANAGEMENT SYSTEM

</td>

</tr>

<tr>

<td>

<b>Course:</b>

</td>

<td>

<input type="text" name="subject"


required>

</td>

</tr>

<tr>

<td>

<b>Email:</b>

</td>

<td>

<input type="text" name="mail"


required>

</td>

</tr>

<tr>
STUDENT MANAGEMENT SYSTEM

<td>

<b>Password:</b>

</td>

<td>

<input type="password"
name="password" required>

</td>

</tr>

<tr>

<td></td>

<td><br><input type="submit" name="add"


value="Add Teacher"></td>

</tr>

</table>

</form>

<?php

?>

</div>

</div>

</body>
STUDENT MANAGEMENT SYSTEM

</html>

add_student.php :

<?php

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

$query = "insert into students


values('',$_POST[roll_no],'$_POST[name]','$_POST[father_name]',$_POST[class],'$_POST[mobil
e]','$_POST[email]','$_POST[password]','$_POST[remark]')";

$query_run = mysqli_query($connection,$query);

?>

<script type="text/javascript">

alert("Student added successfully.");

window.location.href = "admin_dashboard.php";

</script>

Add_teacher.php :

<?php

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");
STUDENT MANAGEMENT SYSTEM

$query = "insert into teachers


values('',$_POST[teacher_id],'$_POST[mail]','$_POST[name]','$_POST[mobile]','$_POST[subject]
','$_POST[password]')";

$query_run = mysqli_query($connection,$query);

?>

<script type="text/javascript">

alert("Teacher added successfully.");

window.location.href = "admin_dashboard.php";

</script>

Edit_student.php :

<?php

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

$query = "update students set


name='$_POST[name]',father_name='$_POST[father_name]',class=$_POST[class],mobile='$_P
OST[mobile]',email='$_POST[email]',password='$_POST[password]',remark='$_POST[remark]'
where roll_no = $_POST[roll_no]";

$query_run = mysqli_query($connection,$query);

?>

<script type="text/javascript">

alert("Details edited successfully.");

window.location.href = "admin_dashboard.php";
STUDENT MANAGEMENT SYSTEM

</script>

delete_student.php :

<script type="text/javascript">

if(confirm("Are you sure want to delete ?"))

document.write("<?php

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

$query = "delete from students where roll_no = $_POST[roll_no]";

$query_run = mysqli_query($connection,$query);

?>");

window.location.href = "admin_dashboard.php";

else

window.location.href = "admin_dashboard.php";

</script>

Student_dashboard.php :

<!DOCTYPE html>
STUDENT MANAGEMENT SYSTEM

<html>

<head>

<title>Student Dashboard</title>

<link rel="stylesheet" type="text/css" href="bootstrap-


4.4.1/css/bootstrap.min.css">

<script type="text/javascript" src="bootstrap-


4.4.1/js/juqery_latest.js"></script>

<script type="text/javascript" src="bootstrap-


4.4.1/js/bootstrap.min.js"></script>

<style type="text/css">

#header{

height: 10%;

width: 100%;

top: 2%;

background-color: black;

position: fixed;

color: white;

#left_side{

height: 75%;

width: 15%;
STUDENT MANAGEMENT SYSTEM

top: 10%;

position: fixed;

#right_side{

height: 75%;

width: 80%;

background-color: lightyellow;

position: fixed;

left: 17%;

top: 21%;

color: red;

border: solid 1px black;

#top_span{

top: 15%;

width: 80%;

left: 17%;

position: fixed;

</style>
STUDENT MANAGEMENT SYSTEM

<?php

session_start();

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

?>

</head>

<body>

<div id="header"><br>

<center>Student Management System


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email: <?php echo
$_SESSION['email'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name:<?php echo
$_SESSION['name'];?>

<a href="logout.php">Logout</a>

</center>

</div>

<span id="top_span"><marquee>Note:- This portal is open till 31 March


2021...Plz mention your information to be changed, if wrong.</marquee></span>

<div id="left_side">

<br><br><br>

<form action="" method="post">

<table>
STUDENT MANAGEMENT SYSTEM

<tr>

<td>

<input type="submit" name="update


request" value="Update Request">

</td>

</tr>

<tr>

<td>

<input type="submit" name="show_detail"


value="Show Detail">

</td>

</tr>

</table>

</form>

</div>

<div id="right_side"><br><br>

<div id="demo">

<?php

if(isset($_POST['show_detail']))

{
STUDENT MANAGEMENT SYSTEM

$query = "select * from students where email =


'$_SESSION[email]'";

$query_run = mysqli_query($connection,$query);

while ($row = mysqli_fetch_assoc($query_run))

?>

<table>

<tr>

<td>

<b>Roll No:</b>

</td>

<td>

<input type="text" value="<?php


echo $row['roll_no']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Name:</b>

</td>

<td>
STUDENT MANAGEMENT SYSTEM

<input type="text" value="<?php


echo $row['name']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Father's Name:</b>

</td>

<td>

<input type="text" value="<?php


echo $row['father_name']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Class:</b>

</td>

<td>

<input type="text" value="<?php


echo $row['class']?>" disabled>

</td>
STUDENT MANAGEMENT SYSTEM

</tr>

<tr>

<td>

<b>Mobile:</b>

</td>

<td>

<input type="text" value="<?php


echo $row['mobile']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Email:</b>

</td>

<td>

<input type="text" value="<?php


echo $row['email']?>" disabled>

</td>

</tr>

<tr>

<td>
STUDENT MANAGEMENT SYSTEM

<b>Password:</b>

</td>

<td>

<input type="password"
value="<?php echo $row['password']?>" disabled>

</td>

</tr>

<tr>

<td>

<b>Remark:</b>

</td>

<td>

<textarea rows="3" cols="40"


disabled><?php echo $row['remark']?></textarea>

</td>

</tr>

</table>

<?php

?>
STUDENT MANAGEMENT SYSTEM

</div>

</div>

</body>

</html>

Student_login.php :

<!DOCTYPE html>

<html>

<head>

<title>Student Login</title>

<link rel="stylesheet" type="text/css" href="bootstrap-


4.4.1/css/bootstrap.min.css">

<script type="text/javascript" src="bootstrap-


4.4.1/js/juqery_latest.js"></script>

<script type="text/javascript" src="bootstrap-


4.4.1/js/bootstrap.min.js"></script>

</head>

<body>

<center><br><br>

<h3>Student LogIn Page</h3><br>

<form action="" method="post">

Email ID: <input type="text" name="email" required><br><br>


STUDENT MANAGEMENT SYSTEM

Password: <input type="password" name="password"


required><br><br>

<input type="submit" name="submit" value="LogIn">

</form><br>

<?php

session_start();

if(isset($_POST['submit']))

$connection = mysqli_connect("localhost","root","");

$db = mysqli_select_db($connection,"sms");

$query = "select * from students where email =


'$_POST[email]'";

$query_run = mysqli_query($connection,$query);

while ($row = mysqli_fetch_assoc($query_run))

if($row['email'] == $_POST['email'])

if($row['password'] == $_POST['password'])

$_SESSION['name'] = $row['name'];

$_SESSION['email'] = $row['email'];
STUDENT MANAGEMENT SYSTEM

header("Location:
student_dashboard.php");

else{

?>

<span>Wrong Password !!</span>

<?php

else

?>

<span>Wrong UserName !!</span>

<?php

?>

</center>

</body>

</html>

You might also like