FIX MySQLi ERROR: Commands out of sync; you can't run this command now (after mysqli_multi_query)
I could not run consecutive mysqli_multi_query without getting the following error after the first run:
Commands out of sync; you can't run this command now
After trying a bunch of suggestions, I finally found that if the following statement was run between the mysqli_multi_query (and after the last one) I no longer had the error:
while(mysqli_next_result($database_connection)){;}
Error, MySQL, MySQLi, commands, sync, can't, run, now, mysqli_multi_query,
mysqli_next_result, $link, $con, $connection, PHP
Негізгі бет 🔥 FIX MySQLi ERROR: Commands out of sync; you can't run this command now (after mysqli_multi_query)
Пікірлер: 22