Cannot figure out how to run a mysqli_multi_query and use the results from the last query

From the manual: mysqli_multi_query() returns a bool indicating success. To retrieve the resultset from the first query you can use mysqli_use_result() or mysqli_store_result(). All subsequent query results can be processed using mysqli_more_results() and mysqli_next_result(). Here is a function that returns the last result of a multi-query: function mysqli_last_result($link) { while (mysqli_more_results($link)) { mysqli_use_result($link); mysqli_next_result($link); } … Read more

Strict Standards: mysqli_next_result() error with mysqli_multi_query

While pipodesign corrected the error within the $querystring and alleviated the problem, the actual solution was not provided regarding the Strict Standards error. I disagree with SirBT’s advice, changing from DO WHILE to WHILE is not necessary. The Strict Standards message that you receive is quite informative. To obey, use this: do{} while(mysqli_more_results($db) && mysqli_next_result($db)); … Read more