Show statistics / Answers in results
-
I want to show some of the statistics in the results page like what answer was given, like an overview of the quiz, I can pullup the data I want but cant seem to filter out the other users data.
<?php global $wpdb; $result = $wpdb->get_results( "SELECT * FROM wp_wp_pro_quiz_statistic "); echo "Question:"." "."Points:"."<br><br>"; foreach($result as $row) { echo $row->question_id." ".$row->points."<br>"; } ?>
This gives me the question and the answer for given.
I know that the user id is linked in “wp_wp_pro_quiz_statistic_ref” but I’m not sure how to only call the current users data from “wp_wp_pro_quiz_statistic”Can anyone help with this ?
Regards
- The topic ‘Show statistics / Answers in results’ is closed to new replies.