+ -
当前位置:首页 → 问答吧 → Warning: mysqli_error() expects exactly 1 parameter, 0 given in

Warning: mysqli_error() expects exactly 1 parameter, 0 given in

时间:2011-11-28

来源:互联网

存储过程执行没有问题,@o_userid在ems sqlmanage下测试也有值,但是在php下边调用就会报错,请高手指点一下?

$sql = "CALL UserCheck(@o_userid,'".$userName."','".$usrPass."');";
$conn = db_connect();
if($result = mysqli_query($conn,$sql) or die(mysqli_error()))
{
$rs = mysqli_query($conn,"select @o_userid") or die(mysqli_error()); //这一句报错?
$row = $rs->fetch_array();

Warning: mysqli_error() expects exactly 1 parameter, 0 given in E:\biyie\htdocs\pilin\data\loginusermiddle.php on line 19
$row = $rs->fetch_array();

作者: postfix2   发布时间: 2011-11-28

mysqli_error()需要参数。。。

mysqli_error($conn)

作者: TottyAndBaty   发布时间: 2011-11-28

Commands out of sync; you can't run this command now

作者: postfix2   发布时间: 2011-11-28

引用 1 楼 tottyandbaty 的回复:
mysqli_error()需要参数。。。

mysqli_error($conn)


Commands out of sync; you can't run this command now

请问是什么问题呢?我没有释放和关闭动作啊?

作者: postfix2   发布时间: 2011-11-28