Professional Documents
Culture Documents
1.1 INTRODUCTION:
PHP 5.6.35
APACHE HTTP Server.
Microsoft Windows.
My sql 5.7.21
2.2 Hardware Requirements:
PHP
PHP is a general-purpose scripting language that is especially
suited to server-side web development where PHP generally runs on a web
server.PHP code is embedded into the HTML source document.Any PHP code in a
requested file is executed by the PHP runtime, usually to create dynamic web page
content.It can also be used for command-line scripting and client-side GUI
applications. PHP can be deployed on many web servers and operating systems, and
can be used with many relational database management systems (RDBMS). It is
available free of charge, and the PHP Group provides the complete source code for
users to build, customize and extend for their own use.
MySQL
APACHE:
HTML:
4. DATABASE DESIGN
Before testing php My Admin, make sure that both Apache and
MySQL are running by opening their respective batch files:
apache_start.bat and mysql_start.bat. Along with Apache and
MySQL running in the background, we type
http://localhost/phpMyAdmin/ into our web browser. If successful
we will be presented with a php MyAdmin start page similar to the
one shown below.
4.2 TABLE DESIGN :
The Website provides following functionalities to the users
Administrator :
Login/Logout.
View student information.
Edit Student Information.
Search students.
Student :
Login/Logout.
View profile.
Change password.
Admin Module:-
This is the first and the base module of the project by this
module a admin is provided to the project to manage the
faculty and student module. An admin have the authority to
add and remove the faculty, Add and delete the Notification,
view progress and attendance status of the students, update
academic calendar etc.
Faculty Module:-
Student Module:-
As like faculty registration same the student will get a roll no
and a pin to registered themselves. After enter the roll no and
pin students are redirect to the registration page after
submitting their general details student will get a roll no and a
password to login their profile. After login the student is able
to view and update their updatable information like mobile no,
email, address and profile pictures but students are restricted
to update their key details like Name, Father Name, Date of
birth in such a case in student is able to write a online
application to their head of department for approving to
update these details. Students are able to view other
information related to their class like notification of their
departments, own attendance in individual subjects, previous
test marks, and send message to other students.
6. CONCLUSION:
7. REFERENCE :
8.APPENDIX :
8.1 PROJECT CODING:
Login Page:
<html>
<head>
<title>Login</title>
<link rel="stylesheet" href="style.css"/>
<script src="login.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css" rel="stylesheet"/>
</head>
<body bgcolor="#FF6347 ">
<table border="2" width="100%" height="10%" bgcolor="silver"><td><h1
align="center"><font color="black"><u> STUDENT PERSONAL
INFORMATION SYSTEM</u></font></h1>
</table>
<div id="log">
<form name="kiruthika" action="newfront.html" method="post">
<table border="4" cellspacing=0 bgcolor=lightgrey borderlightcolor=lightgrey
borderdarkcolor=lightgrey>
</table>
<input type="text" name="username" class="fa" id="username"
placeholder=" USERNAME"/>
<input type="password" name="password" class="fa" id="password"
placeholder=" PASSWORD"/>
<input type="button" value="Login" id="submit" onclick="validate()"/>
</form>
</div>
</div>
</body>
</html>
Front form:
<html>
<head>
<style>
h1
{
color:black;
text-align:center;
text-shadow:1px 1px 0px white;
}</style>
<title>view</title>
<body bgcolor="#FF6347">
<html>
<head>
<title>spt</title>
</head>
<body bgcolor="#FF6347">
<form name="12" action="studpersonal.php" method="post">
<center>
<table border="2"width="100%" bgcolor="silver"><td><h1
align="center"><u>Student Personal Information</u><img src="home.jpg"
align="left"width="5%" height="10%"></h1>
</table>
<br>
<br>
<table border="4" cellspacing=0 bgcolor=lightgrey borderlightcolor=lightgrey
borderdarkcolor=lightgrey>
<tr ><td ><table border="0">
<center>
<tr><td><i>Reg No<td>:<td><input type="text box"
name="reg_no"></i></tr>
<tr><td><i>Name<td>:<td><input type="text box" name="name"></i></tr>
<tr><td><i>Age<td>:<td><input type="text box" name="age"></i></tr>
<tr><td><i>Date Of Birth<td>:<td><input type="date" name="date"></i></tr>
<tr><td><i>Gender<td>:<td><input type="radio" name=gender value="0"
><i>Male</i><input type="radio" name=gender
value="1"><i>Female</i></tr>
<tr><td><i>Batch<td>:<td><select name=bat>
<option value="0"></option>
<option value="2018">2018-2023</option>
<option value="2017">2017-2022</option>
<option value="2016">2016-2021</option>
<option value="2015">2015-2020</option>
<option value="2014">2014-2019</option>
<tr><td><i>Category<td>:<td><input type="radio" name=category
value="0"><i>OC</i><input type="radio" name=category
value="1"><i>BC</i><input type="radio" name=category
value="2"><i>MBC/DNC</i><input type="radio" name=category
value="3"><i>SC/ST</i></tr>
<tr><td><i>Stay mode<td>:<td><input type="radio" name=stay
value="0"><i>Hostel</i><input type="radio" name=stay value="1"><i>Days
Scholar</i></tr>
<tr><td><i>Mode of transport<td>:<td><input type="radio" name=transport
value="0"><i>College bus</i><input type="radio" name=transport
value="1"><i>Others</i></tr>
<tr><td><i>Department<td>:<td><select name=dept>
<option value="0"></option>
<option value="1">M.SC Computer science </option>
<option value="2">computer Applications </option>
</i></select>
<tr><td><i>Blood Group<td>:<td><input type="text box"
name="blood"></i></tr>
<tr><td><i>Father's Name<td>:<td><input type="text box"
name="father_name"></i></tr>
<tr><td><i>Mother's Name<td>:<td><input type="text box"
name="mother_name"></i></tr>
<tr><td><i>Guardian's Name<td>:<td><input type="text box"
name="guardian_name"></i></tr>
<tr><td><i>Address1<td>:<td><input type="text box"
name="address1"></i></tr>
<tr><td><i>Address2<td>:<td><input type="text box"
name="address1"></i></tr>
<tr><td><i>Address3<td>:<td><input type="text box"
name="address1"></i></tr>
<tr><td><i>Address4<td>:<td><input type="text box"
name="address1"></i></tr>
<tr><td><i>Pin_code<td>:<td><input type="text box" name="pin"></i></tr>
<tr><td><i>Mobile_number<td>:<td><input type="text box"
name="mobile_no"></i></tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr><td align="center" colspan=3><input type="Submit"
value="submit"> <input
type="Reset" value="reset"></tr>
</table>
</table>
</form>
<br>
<br>
<table border="2"width="100%" bgcolor="silver"><td><h4
align="center">DESIGNED AND DEVOLEPED BY J.KIRUTHIKA MSC
COMPUTER SCIENCE</h4><br>
<br>
</table>
</body>
</html>
View coding:
<html>
<head>
</head>
<body>
<?php
$conn = mysqli_connect('localhost','root','');
if(!$conn)
{
die('could not connect:'. mysqli_error());
}
mysqli_select_db($conn,"department");
<tr><th>reg_no<th>name<th>age<th>dob<th>gender<th>bat<th>cate<th>s_m
ode<th>mot<th>dept<th>blood_group<th>f_name<th>m_name<th>g_name<th
>address_1<th>address_2<th>address_3<th>address_4<th>pincode<th>mobile
_no</tr>
<?php
while($row=mysqli_fetch_array($sql))
{
$reg=$row['reg_no'];
echo "<tr><td>".$row['reg_no']."<td>".$row['name']."<td>".$row['age']."<td>".
$row['date_of_birth']."<td>";
if ($row['gender']=='0')
{
echo "Male";
}else
{
echo "Female";
}
echo"<td>";
echo $row['batch'];
echo "<td>";
if($row['cate']=='0')
{
echo "OC";
}
else if($row['cate']=='1')
{
echo "BC";
}
else if ($row['cate']=='2')
{
echo "MBC/DNC";
}
else if($row['cate']=='3')
{
echo "SC/ST";
}
echo "<td>";
if($row['s_mode']=='0')
{
echo "Hostel";
}
else
{
echo "Days Scholar";
}
echo "<td>";
if ($row['mot']=='0')
{
echo "College bus";
}
else
{
echo "others";
}
echo"<td>";
if ($row['dept']=="1")
{
echo"M.Sc(CS)";
}
else
{
echo" computer science";
}
echo "<td>".$row['blood_group']."<td>".$row['f_name']."<td>".
$row['m_name']."<td>".$row['g_name']."<td>".$row['address_1']."<td>".
$row['address_2']."<td>".$row['address_3']."<td>".$row['address_4']."<td>".
$row['pin_code']."<td>".$row['mobile_no']."<td><a href='studedit.php?
regno=$reg' onclick='editfunc()'>EDIT</a>"."<td><a href='studdel.php?
regno=$reg'>DELETE</a>"."</tr>";
?>
<input type="hidden" name="reg_no" value="$row['reg_no']">
<?php
}
?>
</body>
</html>
Edit coding:
<?php
$conn = mysqli_connect('localhost','root','');
if(!$conn)
{
die('could not connect:'. mysqli_error());
}
mysqli_select_db($conn,"department");
$a=$_GET['regno'];
$sql=mysqli_query($conn,"select* from stud_per_info where reg_no='$a'");
while($row=mysqli_fetch_array($sql))
{
?>
<table border="2"width="100%" bgcolor="silver"><td><h1
align="center"><u>Student Personal Information</u></h1>
</table>
<br>
<br>
<form name="12" action="studedit1.php" method="post">
<table border="4" cellspacing=0 bgcolor=lightgrey borderlightcolor=lightgrey
borderdarkcolor=lightgrey>
<tr ><td ><table border="0">
<center>
<tr><td><i>Reg No<td>:<td><input type="text box" name="reg_no"
value="<?php echo $row['reg_no']?>"></i></tr>
<tr><td><i>Name<td>:<td><input type="text box" name="name" value="<?
php echo $row['name']?>"></i></tr>
<tr><td><i>Age<td>:<td><input type="text box" name="age" value="<?php
echo $row['age']?>"></i></tr>
<tr><td><i>Date Of Birth<td>:<td><input type="date" name="dob" value="<?
php echo $row['date_of_birth']?>"></i></tr>
<tr><td><i>Gender<td>:
<?php
if ($row['gender']==0)
{
?>
<td><input type="radio" name="gender" value="0"
checked><i>Male</i><input type="radio" name="gender"
value="1"><i>Female</i></tr>
<?php
}else
{
?>
<td><input type="radio" name="gender" value="0"><i>Male</i><input
type="radio" name="gender" value="1" checked><i>Female</i></tr>
<?php
}
?>
<tr><td><i>Batch<td>:
<td><select name=bat>
<?php
if($row['batch']==2014)
{
?>
<option value="2014">2014-2019</option>
<option value="2015">2015-2020</option>
<option value="2016">2016-2021</option>
<option value="2017">2017-2022</option>
<option value="2018">2018-2023</option>
<?php
}
elseif ($row['batch']==2015)
{
?>
<option value="2015">2015-2020</option>
<option value="2016">2016-2021</option>
<option value="2017">2017-2022</option>
<option value="2018">2018-2023</option>
<option value="2014">2014-2019</option>
<?php
}
elseif ($row['batch']==2016)
{
?>
<option value="2016">2016-2021</option>
<option value="2015">2015-2020</option>
<option value="2014">2014-2019</option>
<option value="2017">2017-2022</option>
<option value="2018">2018-2023</option>
<?php
}
elseif ($row['batch']==2017)
{
?>
<option value="2017">2017-2022</option>
<option value="2016">2016-2021</option>
<option value="2015">2015-2020</option>
<option value="2014">2014-2019</option>
<option value="2018">2018-2023</option>
<?php
}
elseif ($row['batch']==2018)
{
?>
<option value="2018">2018-2023</option>
<option value="2017">2017-2022</option>
<option value="2016">2016-2021</option>
<option value="2015">2015-2020</option>
<option value="2014">2014-2019</option>
<?php
}
?>
</select>
<tr><td><i>Category<td>:
<?php
if ($row['cate']==0)
{
?>
<td><input type="radio" name="category" value="0"
checked><i>OC</i>
<input type="radio" name="category" value="1"><i>BC</i>
<input type="radio" name="category" value="2"><i>MBC/DNC</i>
<input type="radio" name="category" value="3"><i>SC/ST</i>
<?php
}
elseif ($row['cate']==1)
{
?>
<td><input type="radio" name="category" value="0" ><i>OC</i>
<input type="radio" name="category" value="1"checked><i>BC</i>
<input type="radio" name="category" value="2"><i>MBC/DNC</i>
<input type="radio" name="category" value="3"><i>SC/ST</i>
<?php
}
elseif ($row['cate']==2)
{
?>
<td><input type="radio" name="category" value="0"><i>OC</i>
<input type="radio" name="category" value="1"><i>BC</i>
<input type="radio" name="category"
value="2"checked><i>MBC/DNC</i>
<input type="radio" name="category" value="3"><i>SC/ST</i>
<?php
}
elseif ($row['cate']==3)
{
?>
<td><input type="radio" name="category" value="0"><i>OC</i>
<input type="radio" name="category" value="1"><i>BC</i>
<input type="radio" name="category" value="2"><i>MBC/DNC</i>
<input type="radio" name="category" value="3" checked><i>SC/ST</i>
<?php
}
?>
<tr><td><i>Stay mode<td>:
<?php
if ($row['s_mode']==0)
{
?>
<td><input type="radio" name="stay" value="0"
checked><i>Hostel</i><input type="radio" name="stay" value="1"><i>Days
Scholar</i></tr>
<?php
}else
{
?>
<td><input type="radio" name="stay" value="0"><i>Hostel</i><input
type="radio" name="stay" value="1" checked><i>Days Scholar</i></tr>
<?php
}
?>
<tr><td><i>Mode of transport<td>:
<?php
if ($row['mot']=='0')
{
?>
<td><input type="radio" name="transport" value="0"
checked><i>College Bus</i><input type="radio" name="transport"
value="1"><i>Others</i></tr>
<?php
}else
{
?>
<td><input type="radio" name="transport" value="0"><i>College
bus</i><input type="radio" name="transport"
value="1"checked><i>others</i></tr>
<?php
}
?>
<tr><td><i>Department<td>:
<td><select name=dept>
<?php
if ($row['dept']==1)
{
?>
<option value="1">M.SC Software engineering</option>
<option value="2">Computer application</option>
<?php
}
elseif($row['dept']==2)
{
?>
<option value="1">M.SC computer science</option>
<option value="2">Computer application</option>
<?php
}
?>
</select>
<tr><td><i>Blood Group<td>:<td><input type="text box" name="blood"
value="<?php echo $row['blood_group']?>"></i></tr>
<tr><td><i>Father's Name<td>:<td><input type="text box"
name="father_name" value="<?php echo $row['f_name']?>"></i></tr>
<tr><td><i>Mother's Name<td>:<td><input type="text box"
name="mother_name" value="<?php echo $row['m_name']?>"></i></tr>
<tr><td><i>Guardian's Name<td>:<td><input type="text box"
name="guardian_name" value="<?php echo $row['g_name']?>"></i></tr>
<tr><td><i>Address1<td>:<td><input type="text box" name="address1"
value="<?php echo $row['address_1']?>"></i></tr>
<tr><td><i>Address2<td>:<td><input type="text box" name="address2"
value="<?php echo $row['address_2']?>"></i></tr>
<tr><td><i>Address3<td>:<td><input type="text box" name="address3"
value="<?php echo $row['address_3']?>"></i></tr>
<tr><td><i>Address4<td>:<td><input type="text box" name="address4"
value="<?php echo $row['address_4']?>"></i></tr>
<tr><td><i>Pin_code<td>:<td><input type="text box" name="pin" value="<?
php echo $row['pin_code']?>"></i></tr>
<tr><td><i>Mobile number<td>:<td><input type="text box"
name="mobile_no" value="<?php echo $row['mobile_no']?>"></i></tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr>
<tr><td align=center colspan=3><input type="Submit"
value="submit"> <input
type="Reset" value="reset"></tr>
</table>
</table>
</form>
<br>
<br>
<table border="2"width="100%" bgcolor="silver"><td><h4
align="center">DESIGNED AND DEVOLEPED BY J.KIRUTHIKA MSC
COMPUTER SCIENCE</h4><br>
<br>
</table><?php
}
echo $sql;
mysqli_query($conn,$sql);
header("refersh:2;url=studview.php");
?>
Edit1 coding:
<?php
$conn = mysqli_connect('localhost','root','');
if(!$conn)
mysqli_select_db($conn,"department");
$a=$_POST['reg_no'];
$b=$_POST['name'];
$c=$_POST['age'];
$d=$_POST['dob'];
$e=$_POST['gender'];
$f=$_POST['bat'];
$g=$_POST['category'];
$h=$_POST['stay'];
$i=$_POST['transport'];
$j=$_POST['dept'];
$k=$_POST['blood'];
$l=$_POST['father_name'];
$m=$_POST['mother_name'];
$n=$_POST['guardian_name'];
$o=$_POST['address1'];
$p=$_POST['address2'];
$q=$_POST['address3'];
$r=$_POST['address4'];
$s=$_POST['pin'];
$t=$_POST['mobile_no'];
mysqli_query($conn,$sql);
header("refersh:2;url=studview.php");
?>
Delete coding:
<?php
$conn = mysqli_connect('localhost','root','');
if(!$conn)
mysqli_select_db($conn,"department");
$a=$_GET['regno'];
$sql="delete from stud_per_info where reg_no='$a'";
echo $sql;
mysqli_query($conn,$sql);
header("Location:studview.php");
?>
Search coding:
<html>
<head>
<center>
<br>
<br>
<table border="0">
<tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr
><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr><tr>
</table>
</table>
<br>
<br>
<table border="2"width="100%" bgcolor="silver"><td><h5
align="center"><br>DESIGNED AND DEVOLEPED BY J.KIRUTHIKA
MSC COMPUTER SCIENCE</h5>
</table>
</body>
</html>
<?php
@mysql_connect('localhost','root','');
mysql_select_db('department');
$records=mysql_query($sql);
?>
<html>
<head>
<script>
function printpage() {
printButton.style.visibility = 'hidden';
window.print()
printButton.style.visibility = 'visible';
</script>
<center>
</table><br><br>
<table border="2" cellspacing=0 bgcolor=lightgrey
borderlightcolor=lightgrey borderdarkcolor=lightgrey>
<th><h2>Regno</h2></th>
<th><h2>Name</h2></th>
<th><h2>Age</h2></th>
<th><h2>DOB</h2></th>
<th><h2>Gender</h2></th>
<th><h2>Batch</h2></th>
<th><h2>Cate</h2></th>
<th><h2>Smode</h2></th>
<th><h2>MOT</h2></th>
<th><h2>Dept</h2></th>
<th><h2>BGroup</h2></th>
<th><h2>FName</h2></th>
<th><h2>MName</h2></th>
<th><h2>GName</h2></th>
<th><h2>Add1</h2></th>
<th><h2>Add2</h2></th>
<th><h2>Add3</h2></th>
<th><h2>Add4</h2></th>
<th><h2>pincode</h2></th>
<th><h2>Mobile_no</h2></th><br>
<tr>
<?php
while($row=mysql_fetch_assoc($records))
echo"<tr>";
echo"<td>".$row['reg_no']."</td>";
echo"<td>".$row['name']."</td>";
echo"<td>".$row['age']."</td>";
echo"<td>".$row['date_of_birth']."</td>";
echo"<td>".$row['gender']."</td>";
echo"<td>".$row['batch']."</td>";
echo"<td>".$row['cate']."</td>";
echo"<td>".$row['s_mode']."</td>";
echo"<td>".$row['mot']."</td>";
echo"<td>".$row['dept']."</td>";
echo"<td>".$row['blood_group']."</td>";
echo"<td>".$row['f_name']."</td>";
echo"<td>".$row['m_name']."</td>";
echo"<td>".$row['g_name']."</td>";
echo"<td>".$row['address_1']."</td>";
echo"<td>".$row['address_2']."</td>";
echo"<td>".$row['address_3']."</td>";
echo"<td>".$row['address_4']."</td>";
echo"<td>".$row['pin_code']."</td>";
echo"<td>".$row['mobile_no']."</td>";
echo"</tr>";
?>
</table>
</center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><in
put id="printpagebutton" type="image" src="pn.png" height="50"
width="70" align="center" style="float:right" onclick="printpage()"/>
<br>
<table border="2"width="100%" bgcolor="silver"><td><h5
align="center"><br>DESIGNED AND DEVOLEPED BY
</table>
</body>
</html>
8.2 SNAPSHOTS:
Login page:
Front form:
Entry page:
Search page:
Report page: