Location: PHPKode > projects > K-12 OSS Web Software Project > equest_0.1/teacher/yes.php
<?php
include("../config.php");

session_start();
if (!(isset($_SESSION['teacher']))) {
       header("Location: ../index.php");
       exit();
   }
?>

<html><head>
<title>eQuest Web Quest System</title>
<link type="text/css" rel="stylesheet" href="./styles.css">
</head>
<body>
<table class="maintable" bordercolor="#000066" cellspacing="0" cellpadding="3" align="center" border="1" width="600">
<tbody>
<?php include("./header.php"); ?>
<?php 
$insertSQL = "DELETE FROM quests WHERE quest_unique='{$_REQUEST["quest"]}'";
mysql_query($insertSQL) or die ("Unable to insert data: ".mysql_error());

?>

<!-- start teacher list block -->
  <tr>
    <td class="text" bgcolor="#ffffff" valign="top">
<center>
<blockquote>
<h2>Your Web Quest has been deleted</h2>
<p><a href="members.php">Click here to return to your web quests</a></p>
</blockquote>
</center>
    </td>
  </tr>
<!-- end teacher list block -->


<?php include("./footer.php"); ?>
Return current item: K-12 OSS Web Software Project