PHP Parse error: syntax error, unexpected ‘)’ in
-
Just reporting this bug.
Code:
$cat_sql = $wpdb->get_results( $wpdb->prepare("SELECT category FROM {$wpdb->prefix}mlw_questions WHERE quiz_id = %d ", $quiz_id), );
Message:
[15-Jul-2021 06:59:24 UTC] PHP Parse error: syntax error, unexpected ')' in /.../wp-content/plugins/quiz-master-next/php/classes/class-qmn-quiz-manager.php on line 500
Solution:
– Removed the extra comma inside the $wpdb->get_resultsThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Parse error: syntax error, unexpected ‘)’ in’ is closed to new replies.