-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete2t.php
43 lines (37 loc) · 1.09 KB
/
delete2t.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
<?php
session_start();
?>
<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>
<?php
include("student.php");
extract($_POST);
$rna=$_SESSION[rna];
if(isset($_POST['Submit']))
{
$Query="DELETE from student where register_number = '$rna' ";
$dbresult=mysql_query($Query);
if($dbresult)
{
echo "<script type='text/javascript'>alert(\"Record Successfully Deleted $rna \")</script>";
//header("location:editteacher.php");
include("editteacher.php");
}
else
{
echo "<script type='text/javascript'>alert(\"Try Again! Your Record Not Deleted\")</script>";
//header("location:updateteacher.php");
include("delete1t.php");
}
}
?>