-
Notifications
You must be signed in to change notification settings - Fork 0
/
studentRemove.php
67 lines (60 loc) · 2.62 KB
/
studentRemove.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/RockTemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Remove Student</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="Newstyles.css" rel="stylesheet" type="text/css" />
<link href="Sty.css" rel="stylesheet" type="text/css" />
<link href="Styles23.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #000;
}
.LinkImage {
width: 0px;
}
a:link {
color: #FBF920;
}
a:visited {
color: #D5482C;
}
a:active {
color: #D5402C;
}
-->
</style></head>
<body onLoad="document.answerForm.myAnswer.focus()">
<div id="header"><a href="index.html"><img src="images/MYlogo.png" alt="RockLogo" width="211" height="67" border="0" /></a></div>
<div id="menu"><a href="index.html"><img src="images/RockHome.jpg" alt="Home" width="95" height="32" border="0" /></a><a href="about-us.html"><img src="images/RockAB.jpg" alt="About Us" width="95" height="32" border="0" /></a><a href="teachers.html"><img src="images/ForTeach.jpg" alt="For Teachers" width="95" height="32" border="0" /></a><a href="parents.html"><img src="images/ForPnts.jpg" alt="For Parents" width="95" height="32" border="0" /></a><a href="students.html"><img src="images/ForStdts.jpg" alt="For Students" width="95" height="32" border="0" /></a><a href="teacherLogin.php"><img src="images/TeachLogin.jpg" alt="Teachers (:" width="95" height="32" border="0" /></a><a href="studentLogin.php"><img src="images/StudLogin.jpg" alt="Students (:" width="95" height="32" border="0" /></a></div>
<div id="middle">
<p> </p>
<div class="bodytext" id="submenu">
<p> </p>
</div>
<div class="bodytext" id="content"><!-- InstanceBeginEditable name="Content" -->
<?php
require 'arithClasses.inc';
require 'dbConnect.inc';
error_reporting(E_ALL);
require 'sessionStart.inc';
$aTeacher = $_SESSION['teacher'];
$db = dbConnect();
$sid = $db->real_escape_string($_GET['sid']);
$queryStr = sprintf("DELETE from student where sid=%d", $sid);
if ($db->query($queryStr)) {
printf("You successfully removed the student<br>");
}
$db->close();
?>
<p>
<a href="teacherHome.php">Return to Teacher Home</a><!-- InstanceEndEditable --></div>
</div>
<div id="footer">Thanks for visiting Multiplcation Rocks -- © 2009 Audra Barton</div>
</body>
<!-- InstanceEnd --></html>