How to identify the query that caused the error using mysqli_multi_query?
问题 Using a example from elsewhere on SO to better catch 'hiding' errors. While the code below will catch and return an error, is it possible to improve this to report for which query the error occurred? With the code below, the output is: Columns: 18 Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FRO inventory' at line 1 Code being tested: $query = "SELECT * FROM orders WHERE location = 'IN' ORDER BY