php 未捕获错误:在 bool 中调用成员函数 bind_param()

时间:2021-02-28 13:22:14

标签: php uncaught-exception

任何人都可以理解我是编程新手,我无法调试错误

<块引用>

致命错误:未捕获的错误:在 C:\xampp\htdocs\cheekily\register.php:46 中调用 bool 上的成员函数 bind_param() 堆栈跟踪:#0 {main} throw in C:\xampp\htdocs \cheekily\register.php 第 46 行

我的代码是:

//checking username

if ($rnum==0) {
  $stmt->close();
  $stmt = $conn->prepare($INSERT);
  $stmt->bind_param("ssssss", $first_name,$last_name,$username,
                              $mobile,$password,$confirm_password);
  $stmt->execute();
  echo "New record inserted sucessfully";
}

0 个答案:

没有答案
相关问题