scores of specific users.
-
i have put this query on my-gradebook.html.php
$points = $wpdb->get_var("SELECT points FROM wp_watu_takings WHERE user_id = " . $current_user->ID .""); echo "<p> {$points} </p>";
so i have two course. i made 50 sets of question on each course. what i want to happen is show the points of the current user on their quiz. what happened on that query above is it show points from the first quiz but on the second quiz it also show the same points the user got on the first quiz. what do i need to do to make it work? this is the original code:
<?php echo $lesson->grade ? $lesson->grade : __('Not graded', 'namaste');?>
honestly i dont know how to do it. so i would be very happy if someone will help me
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘scores of specific users.’ is closed to new replies.