PHP 致命错误:未捕获的错误:在准备好的选择中调用未定义的方法 mysqli_stmt::get_result()

问题描述

我在 PHP 中使用 MysqLi 准备好的语句从表中获取数据,但它显示错误

include('db_connection.PHP');
if (isset($_POST['submitted'])){
$email = $_POST['email'];
$pw= $_POST['password'];
$password= md5($pw);
$q1="select * from global_user where(user_name=? OR user_email=?)And user_password=?";
$stmt = $conn->prepare($q1); 
$stmt->bind_param("sss",$email,$password);
$stmt->execute();
$result = $stmt->get_result(); // get the MysqLi result
$user = $result->fetch_assoc(); // fetch data  

    

我为此搜索了很多,但没有找到任何解决方案。请帮我。提前致谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)