This is the restult I get when having 100% correct answers:
Congratulations, you have successfully passed this quiz. You correctly answered 11 of 11 total questions - a grade of 101%.
- Date: 06-18-2002
- Total: 11 out of 11
- Percentage: 99 percent
The template shows 99% on the top - next to the bars
The template shows 101% at the bottom.
This is what I have in the quiz.php:
$base = 100 / $question_count;
$pct = ceil($totalcorrect * $base);
|