public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Get a count of how many attempts there were for this quiz.
		 *
		 * @return Object The quiz results as an object.
		 */
Get a count of how many attempts there were for this quiz.
@return Object The quiz results as an object.
Get a count of how many attempts there were for this quiz . @return Object The quiz results as an object .
public function fetch_quizzes_getQuizAttemptCount() {
			global $wpdb, $wpcwdb;
			$wpdb->show_errors();
			return $wpdb->get_var( $wpdb->prepare( "
	    	SELECT COUNT(*) AS attempt_count
	    	FROM $wpcwdb->user_progress_quiz 
	    	WHERE user_id = %d 
	    	  AND unit_id = %d 
	    	  AND quiz_id = %d
	   	", $this->currentUserID, $this->unitPost->ID, $this->unitQuizDetails->quiz_id ) );
		}
public function fetch_quizzes_getQuizAttemptCount ( ) { global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; return $ wpdb -> get_var ( $ wpdb -> prepare ( " 
	    	SELECT COUNT(*) AS attempt_count
	    	FROM  $ wpcwdb -> user_progress_quiz  
	    	WHERE user_id = %d 
	    	  AND unit_id = %d 
	    	  AND quiz_id = %d
	   	 " , $ this -> currentUserID , $ this -> unitPost -> ID , $ this -> unitQuizDetails -> quiz_id ) ) ; }
Get a count of how many attempts there were for this quiz.
Get a count of how many attempts there were for this quiz .