%s

", $questions[$question]); if ($answer != "") { if ($image_answer[$question] != "") { printf("

", $image_answer[$question]); } } if ($answer == $key[$question]) { $score = $score+$question_value; printf("Correct! %s

Your score: %s (out of 100)
", $explanation[$question], $score); } else { $correctanswer = $key[$question]; printf("Sorry, the correct answer was \"%s\". %s

Your score: %s (out of 100)
", $answers[$correctanswer], $explanation[$question], $score); } if ($question != 9) { $nextquestion = $question+1; printf ("

Continue to next question", $PHP_SELF, $nextquestion, $score); } else { echo "

Further resources"; } } else { printf("

%s

", $questions[$question]); $answer = 0; for ($count = (($question)*4); $count <= ((($question)*4)+3); $count++) { printf("

%s

", $PHP_SELF, $question, $count, $score, $answers[$count]); $answer++; } } ?>