Functions to return total questions, score, and %
Functions to return total questions, score, and %
Would it be possible to get some kind of reusable functions to call score related things that looks something like the following:
Thanks!
$quiz = new objQuiz($quizId);
$numberCorrect = $quiz->score;
$totalQuestions = $quiz->countQuestions;
$percentCorrect = $quiz->percentage;
Thanks!
Access to viewing replies is restricted.
Showing 7 of 7 replies
You do not have permissions for replying to this topic.