I have following php code : I get the generic error but when I run the same code on MySQL then it works without error. Can someone please help me what am I missing . I even tried exception handling but it didn’t help. NOTE : code fails in the while loop condition. Answer The mysqli_multi_query() executes one or multiple
Tag: mysqli-multi-query
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: Code being tested: Answer Here is an approach that will not only improve the quality of your