Changeset 865578
- Timestamp:
- 02/26/2014 06:01:02 PM (12 years ago)
- File:
-
- 1 edited
-
mtouch-quiz/trunk/question.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mtouch-quiz/trunk/question.php
r457154 r865578 84 84 85 85 <div class="wrap"> 86 <?php if (! $quiz_name) { $quiz_name =__("Quiz ID Number",'mtouchquiz')." ".$_REQUEST['quiz']; } ?> 86 <?php 87 $quiz_request=$_REQUEST[quiz]; 88 if (! $quiz_name) { $quiz_name =__("Quiz ID Number",'mtouchquiz')." ".$quiz_request; } ?> 87 89 <h2><?php echo _e("Manage Questions in ", 'mtouchquiz') . $quiz_name; ?></h2> 88 90 <?php 89 91 wp_enqueue_script( 'listman' ); 90 92 wp_print_scripts(); 93 91 94 ?> 92 95 <p> 93 <?php _e('To add this quiz to your blog, insert the code ', 'mtouchquiz') ?>94 [mtouchquiz <?php echo $ _REQUEST['quiz']?>]96 <?php _e('To add this quiz to your blog, insert the code ', 'mtouchquiz') ?> 97 [mtouchquiz <?php echo $quiz_request ?>] 95 98 <?php _e('into any post.', 'mtouchquiz') ?> 96 99 </p> … … 115 118 $all_question = $wpdb->get_results("SELECT Q.ID,Q.sort_order,Q.question, Q.number_correct, Q.point_value, (SELECT COUNT(*) FROM {$wpdb->prefix}mtouchquiz_answer WHERE question_id=Q.ID) AS answer_count 116 119 FROM `{$wpdb->prefix}mtouchquiz_question` AS Q 117 WHERE Q.quiz_id=$ _REQUEST[quiz]ORDER BY Q.sort_order, Q.ID");120 WHERE Q.quiz_id=$quiz_request ORDER BY Q.sort_order, Q.ID"); 118 121 119 122
Note: See TracChangeset
for help on using the changeset viewer.