public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Get a list of tags for the specified question ID.
 *
 * @since 1.0.0
 *
 * @param integer $questionID The ID of the question to get tags for.
 *
 * @return array The list of tags for this question.
 */
Get a list of tags for the specified question ID.

@param integer $questionID The ID of the question to get tags for.

@return array The list of tags for this question.
Get a list of tags for the specified question ID . @param integer $questionID The ID of the question to get tags for . @return array The list of tags for this question .
function WPCW_questions_tags_getTagsForQuestion( $questionID ) {
	global $wpcwdb, $wpdb;
	$wpdb->show_errors();
	return $wpdb->get_results( $wpdb->prepare( "
		SELECT qt.*
		FROM $wpcwdb->question_tag_mapping qtm
			LEFT JOIN $wpcwdb->question_tags qt ON qtm.tag_id = qt.question_tag_id
		WHERE question_id = %d
		  AND question_tag_name IS NOT NULL
		ORDER BY question_tag_name ASC
	", $questionID ) );
}
function WPCW_questions_tags_getTagsForQuestion ( $ questionID ) { global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; return $ wpdb -> get_results ( $ wpdb -> prepare ( " 
		SELECT qt.*
		FROM  $ wpcwdb -> question_tag_mapping  qtm
			LEFT JOIN  $ wpcwdb -> question_tags  qt ON qtm.tag_id = qt.question_tag_id
		WHERE question_id = %d
		  AND question_tag_name IS NOT NULL
		ORDER BY question_tag_name ASC
	 " , $ questionID ) ) ; }
Get a list of tags for the specified question ID.
Get a list of tags for the specified question ID .