TP3.1 调用存储过程后再执行其它数据操作都不执行。数据库错误信息为:Commands out of sync; you can't run this command now......这个是该怎么解决呢。
代码如下:
$obj= M();
$data = $obj->query('call proc_('参数')');//存储调用,返回结果。
$log = M('Log');
$log->add(array('ti
tle'=>'test'));// 写入数据失败。
echo $log->getDbError(); //数据库报错信息。