php调用mysql存储过程出不了结果
$conn=mysql_connect("localhost","root","123456")ordie(mysql_error());mysql_select_db(...
$conn = mysql_connect("localhost", "root", "123456") or die(mysql_error());
mysql_select_db("smsmessages", $conn) or die(mysql_error());
mysql_query("SET NAMES 'gbk';", $conn) or die(mysql_error());
$res=mysql_query("CALL UsermanageS('login','','admin','','','','',@str);",$conn);
$res=mysql_query("SELECT @str",$conn);
echo $res[0][@str]; 展开
mysql_select_db("smsmessages", $conn) or die(mysql_error());
mysql_query("SET NAMES 'gbk';", $conn) or die(mysql_error());
$res=mysql_query("CALL UsermanageS('login','','admin','','','','',@str);",$conn);
$res=mysql_query("SELECT @str",$conn);
echo $res[0][@str]; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询