PHP调用存储过程出错,普通SQL语句返回的结果却正常
$sql = "select state from servicer where servicer_id=? and password=?";执行上面这句返回的结果为1
$sql = "call login(?,?)";执行这句却出错
Warning: mysqli_stmt::bind_result(): Number of bind variables doesn't match number of fields in prepared statement
select state from servicer where servicer_id=user_id and password=pw;存储过程是上面这句,附带两个参数
IN `user_id` char(20),IN `pw` char(20) |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|