本文整理汇总了PHP中Quiz::removeOptionTest方法的典型用法代码示例。如果您正苦于以下问题:PHP Quiz::removeOptionTest方法的具体用法?PHP Quiz::removeOptionTest怎么用?PHP Quiz::removeOptionTest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quiz
的用法示例。
在下文中一共展示了Quiz::removeOptionTest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Quiz
<?php
require "quizrooDB.php";
if (isset($_GET['delete'])) {
// delete the option
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->removeOptionTest($_GET['option'], $member->id)) {
echo "Delete not authorized";
}
} else {
// get result number
$question = $_GET['questionNumber'];
$option = $_GET['optionNumber'];
$quiz = $_GET['id'];
// prepare result options
$querySQL = "SELECT result_id, result_title FROM q_results_test WHERE fk_quiz_id = " . GetSQLValueString($quiz, "int");
$resultID = mysql_query($querySQL, $quizroo) or die(mysql_error());
$row_resultID = mysql_fetch_assoc($resultID);
$results = array();
do {
$results[] = array($row_resultID['result_id'], $row_resultID['result_title']);
} while ($row_resultID = mysql_fetch_assoc($resultID));
mysql_free_result($resultID);
?>
<!--EDITED BY YL ON 24aug, removed the contributes to and weightage dropdown list and added correct answer checkbox-->
<div id="cq<?php
echo $question;