public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Updates the database with the new index marker.
		 *
		 * @param Integer $newIndex The new marker to save to the database.
		 */
Updates the database with the new index marker.
@param Integer $newIndex The new marker to save to the database.
Updates the database with the new index marker . @param Integer $newIndex The new marker to save to the database .
public function update_paging_getQuestion_saveQuestionMarker( $newIndex ) {
			$this->unitQuizProgress->quiz_paging_next_q = $newIndex;
			global $wpdb, $wpcwdb;
			$wpdb->show_errors();
			$wpdb->query( $wpdb->prepare(
				"
				UPDATE $wpcwdb->user_progress_quiz 
				SET quiz_paging_next_q = %d
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			", $newIndex, $this->currentUserID, $this->unitPost->ID, $this->unitQuizDetails->quiz_id
			) );
		}
public function update_paging_getQuestion_saveQuestionMarker ( $ newIndex ) { $ this -> unitQuizProgress -> quiz_paging_next_q = $ newIndex ; global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; $ wpdb -> query ( $ wpdb -> prepare ( " 
				UPDATE  $ wpcwdb -> user_progress_quiz  
				SET quiz_paging_next_q = %d
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			 " , $ newIndex , $ this -> currentUserID , $ this -> unitPost -> ID , $ this -> unitQuizDetails -> quiz_id ) ) ; }
Updates the database with the new index marker.
Updates the database with the new index marker .
// Update local variable // Then just update the single count in the database.