include("customsinglequestionconfig.php");
include("customsinglequestionlang.php");
$id - $_GET["id"];
if(!is_numeric($id))
{
echo"There seems to be a problem with the quiz ID string you are using. Please make sure it is numbers only.";
exit();
}
$right = $_POST['right'];
$q = $_POST['q'];
if(!isset($qnumber))
{
$qnumber = 0;
$q = 1;
}
else
{
$qnumber++;
$q++;
}
// echo"$q -- $qnumber <<< >>> $q q HERE
";
//echo"$id <----id
";
$query = "SELECT name, questions, category FROM trivia_quizzes WHERE(id = '$id')";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
//echo mysql_errno().": ".mysql_error()."
";
$name = $row[0];
//echo"$name <---name
";
$questions = $row[1];
//echo"$questions <---qs
";
$category = $row[2];
//echo"$category <---category
";
$qids = explode(":",$questions);
$quizlength = count($qids);
//echo"$quizlength <---quizlength
";
$maxnumber = 6;
$start = 0;
$end = 6;
$questions = explode(':',$questions);
// echo"$questions[$qnumber] << qus
";
// echo"$category , category
";
$query="SELECT question, answer, wrong1, wrong2, wrong3, wrong4, wrong5,image FROM $category WHERE(id = '$questions[$qnumber]')";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
// echo mysql_errno().": ".mysql_error()." 2
";
$question = $row[0];
$answers[1] = $row[1];
$answers[2] = $row[2];
$answers[3] = $row[3];
$answers[4] = $row[4];
$answers[5] = $row[5];
$answers[6] = $row[6];
$image = $row[7];
$qIndexes = range(1, 6);
srand((float)microtime() * 1000000);
shuffle($qIndexes);
?>
Young Galvanizing, Inc. Galvanizing Trivia Quiz Question


|
Good luck with our Galvanizing Trivia Quiz!
|
" cellspacing="0" class="table1" height="200" >
|
|
Return to Trivia Quiz Home page.
|
 |
Copyright © Young Galvanizing, Inc. All rights reserved.
|