无法调用两个存储过程 [英] Can't call two stored procedures
本文介绍了无法调用两个存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$result = mysql_query("CALL verCamasDisponiveis('".$_SESSION['pID']."')")
or die ("Erro-- ".mysql_error());
$camasd = mysql_fetch_array($result);
$n = $camasd['Count(Descricao)'];
mysql_free_result($result);
$result = mysql_query("CALL verMobiliario('".$_SESSION['pID']."')")
or die ("Erro1-- ".mysql_error());
两者都只返回一个字段/行.
在第二秒我得到
Both returns only one field/row.
At the second I get
Commands out of sync; you can''t run this command now
我有php5.在Mysql shell上,这些过程可以正常工作.我该如何解决?
I have php5. At Mysql shell those procedures work fine. How can I solve this?
推荐答案
结果 = mysql_query(" 调用verCamasDisponiveis('".
_SESSION [ pID']. ')") 或死(" .mysql_error());
_SESSION['pID']."')") or die ("Erro-- ".mysql_error());
camasd = mysql_fetch_array(
camasd = mysql_fetch_array(
这篇关于无法调用两个存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文