Example #1
0
                    ?>
							<div class="right_or_wrong">
								<span class="choicec">Your Answer: <?php 
                    echo get_answer($his_answer);
                    ?>
</span>
								<br />
<?php 
                    if (check_right_answer($his_answer, $row->id) == TRUE) {
                        ?>
								<span class="choiceb">And it's correct!</span>
<?php 
                    } else {
                        ?>
								<span class="choicea">Sorry! It's wrong! The correct answer should be <?php 
                        echo get_right_answer($row->id);
                        ?>
</span>
<?php 
                    }
                    ?>
							</div>
<?php 
                }
                ?>
							<div class="stats"><?php 
                echo $row->correct;
                ?>
 Out Of <?php 
                echo $people;
                ?>
Example #2
0
                ?>
<br />
			Question ID: <?php 
                echo $row->question_id;
                ?>
<br />
			Quiz Title: <?php 
                echo get_title(get_quiz_from_question($row->question_id));
                ?>
<br />
			Answer: <?php 
                echo $row->answer;
                ?>
<br />
			Correct Answer: <?php 
                echo get_right_answer($row->question_id);
                ?>
<br />
<?php 
            } elseif ($type == 'recent_signup') {
                ?>
			Username: <a target="_blank" href="/<?php 
                echo $row->username;
                ?>
"><?php 
                echo $row->username;
                ?>
</a><br />
			Signup Time: <?php 
                echo convert_timespan($row->signup_time);
                ?>