php调用存储过程
create procedure t() select * from x;
<?
$con=mysql_connect("localhost","root","331200");
mysql_select_db("shop");
$re=mysql_query("call t()");
//$re=mysql_query("select * from xx");
echo mysql_num_rows($re);
?>
为什么报错
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\web\Apache2\htdocs\dian\test.php on line 6