Show statistics / Answers in results (1 post)

  1. Axelsnoski
    Posted 2 years ago #

    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.

    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 ?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp-Pro-Quiz
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic