-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditstudentdetail.php
54 lines (39 loc) · 1.05 KB
/
editstudentdetail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
require("main.php");
?></body><head>
<script type="text/javascript">
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}
</script>
</head>
<body>
<?php
include("student.php");
$username=$_POST['username'];
$password=$_POST['password'];
$Query="SELECT * from student where register_number = '$username' and admission_number = '$password' ";
$dbresult=mysql_query($Query);
if(mysql_num_rows($dbresult) >0)
{ while($row=mysql_fetch_row($dbresult))
{
echo "<div class='str'>hello : "."$row[0]"."</div>";
}
require("studentlist.php");
}
else
{
echo "<div class='str'>Incorrect Username or password</div>";
echo "<div class='str'><a href='studentlogin.php'>Go back</a></div>";
require("footer.php");
exit();
}
?>
<?php
require("footer.php");
?>