WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Pro-Quiz
Show statistics / Answers in results (1 post)

  1. Axelsnoski
    Member
    Posted 10 months 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.

    <?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

    http://wordpress.org/plugins/wp-pro-quiz/

Reply

You must log in to post.

About this Plugin

About this Topic