startend
注册会员

UID 105521
精华
0
积分 52
帖子 42
金钱 52 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2008-1-2
状态 离线
|
在PHP中调用mysql存储过程为何不显示结果集
//存储过程
create procedure testpc()
begin
select item_guid from storage;
end//
//PHP代码测试
$user="root";
$pwd="root";
@mysql_connect("localhost",$user,$pwd) or die("error");
@mysql_select_db("testorder");
$qry=@mysql_query("call testpc()");
while($rs=@mysql_fetch_array($qry)){
print_r($rs);
}
我现在执行我自己建立的存储过程,为何不执行?没有任何反应!请教各位
|
|