• Resolved amirpandzic

    (@amirpandzic)


    Hello,

    I didn’t link page becouse it’s still in development, I have 2 questions:
    Is there a way to check (in backend php) if user with some id took quiz?

    Kind regards,
    Amir Pandzic

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter amirpandzic

    (@amirpandzic)

    Sorry that is one question 🙂

    Plugin Author Bob

    (@prasunsen)

    Yes, you can look in watu_takings DB table.

    Thread Starter amirpandzic

    (@amirpandzic)

    Hello,

    Thanks for quick answer is there maybe some php code sample on how to do that, that would be gr8 help.

    Kind regards,
    Amir Pandzic

    Plugin Author Bob

    (@prasunsen)

    You just need a DB query:

    $is_taken = $wpdb->get_var($wpdb->prepare("SELECT ID FROM {$wpdb->predix}watu_takings WHERE user_id=%d AND exam_id=%d", $user_ID, $exam_ID);

    Make sure both variables are defined.

    Thread Starter amirpandzic

    (@amirpandzic)

    Thank you for quick response 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘One time quiz’ is closed to new replies.