mysqli调用存储过程问题

lijie250 2009-04-29 01:55:58
我这边遇到很奇怪的问题就是mysqli调用存储过程很简单,代码如下:

$dbc->autocommit(false);
$result=$dbc->query("call test()");
$rows=$result->fetch_array();
mysqli_free_result($result);
$dbc->commit();

在存储过程里面是没有事务的,我用PHP控制事务,可是执行$dbc->commit()就出现这个错误ommands out of sync; you can't run this command now,这个是怎么回事?
...全文
108 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lijie250 2009-04-29
  • 打赏
  • 举报
回复
完整的错误信息是这个Commands out of sync; you can't run this command now
cpc1984 2009-04-29
  • 打赏
  • 举报
回复
ommands是什么?

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧