</div></td> </tr> </table> </div> <?php $result++; } while ($row_getQuery = mysql_fetch_assoc($getQuery)); } } elseif (isset($_GET['delete'])) { // delete the result require 'member.php'; require 'quiz.php'; // also pass in the member id for security check $quiz = new Quiz($_GET['id']); $member = new Member(); if (!$quiz->removeResultTest($_GET['result'], $member->id)) { echo "Delete not authorized"; } } else { $result = $_GET['resultNumber']; $unikey = $_GET['unikey']; $count = 1; ?> <div id="r<?php echo $result; ?> " class="resultWidget"> <table width="95%" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <th colspan="2" valign="top" scope="row"><a href="javascript:;" onclick="QuizResultTest.remove(<?php echo $result;