get_row($wpdb->prepare("SELECT question, explanation FROM wp_quiz_question WHERE ID=%d", $_REQUEST['question'])); $all_answers = $wpdb->get_results($wpdb->prepare("SELECT answer,correct FROM wp_quiz_answer WHERE question_id=%d ORDER BY sort_order", $_REQUEST['question'])); $answer_count = 4; if($action == 'edit' and $answer_count < count($all_answers)) $answer_count = count($all_answers) ; ?>