Results
Score: =$score?> out of =$total_questions;?>
Question | You Said | Correct Answer |
---|---|---|
=$order;?> =$question->question;?> | =$your_answer;?> | =$correct_answer;?> |
order; if( $order >= 100 ) { break; } if( $question->correct == $_POST['Q'][$order] ) { $score++; } $total_questions++; } global $wp; global $score; $wp->vars_for_filter = array($score, $total_questions); function add_score_to_title($title) { global $wp; $score = $wp->vars_for_filter[0]; $total_questions = $wp->vars_for_filter[1]; return 'Quiz Results (' . $score . '/' . $total_questions . ') - ' . $title; } add_filter( 'aioseop_title_single', 'add_score_to_title'); get_header(); ?>
Score: =$score?> out of =$total_questions;?>
Question | You Said | Correct Answer |
---|---|---|
=$order;?> =$question->question;?> | =$your_answer;?> | =$correct_answer;?> |