Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 MySQL 存储过程返回结果集时,您会收到错误“命令不同步”。使用 mysqli 连接到数据库时,可以使用以下代码修复此错误:
<?php // Assuming $connection is your MySQLI object while($connection->next_result()) $connection->store_result(); ?>
使用 SafeMySQL 类连接数据库时如何解决此错误?
记得关闭你的结果集
$result->close(); $connection->next_result();