未捕获的错误:调用mamp中未定义的方法mysqli_stmt :: get_result()

桑加雷斯

我在Windows上运行MAMP。在php.ini文件中启用了php_mysqli.dll。

随之而来的是,在php info中,它说mysqlnd已启用:

phpinfo mysqlind

这是我的PHP样子:

$connection = connect();
if($stmt = $connection->prepare("SELECT * FROM `users` WHERE `email` = '?'")){
    $stmt->bind_param("s", $email);
    $stmt->execute();
    $result = $stmt->get_result();
}

该行$result = $stmt->get_result()引发错误

PHP致命错误:未捕获错误:调用未定义方法mysqli_stmt :: get_result()

任何猜测为什么get_result()不起作用?

这与已经提出的问题有所不同,因为所有解决方案都涉及到未启用mysqlind,尽管在我看来是这样。

重心

如果您切换到PDO,则可以fetchAll改用。由于以下几个原因,PDO比mysqli更好:一个原因包括在执行之前将数组作为参数传递的能力。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

致命错误:未捕获错误:调用未定义的方法 mysqli_stmt::get_result()

来自分类Dev

致命错误:调用未定义方法mysqli_stmt :: get_result()

来自分类Dev

致命错误:调用未定义的方法mysqli_stmt :: get_result()

来自分类Dev

致命错误:调用未定义的方法mysqli_stmt :: get_result()

来自分类Dev

PHP mysqli_stmt :: get_result()是未定义的方法

来自分类Dev

mysqli_stmt :: get_result()的致命错误

来自分类Dev

PHP mysqli_stmt::get_result() is undefined method

来自分类Dev

mysqli准备的语句get_result()?

来自分类Dev

如何从 $stmt->get_result() 中检索单个值

来自分类Dev

致命错误:未捕获错误:调用未定义的方法 mysqli_stmt::fetch_assoc()

来自分类Dev

$ query-> get_result()是获取结果的正确方法吗?

来自分类Dev

$ query-> get_result()是获取结果的正确方法吗?

来自分类Dev

mysql中的store_result()和get_result()返回false

来自分类Dev

php中的get_result()和store_result()有什么区别?

来自分类Dev

PHP可以在mysqli get_result对象上调用哪些函数?

来自分类Dev

mysqli:get_result功能,不带mysqlnd并带有准备好的语句

来自分类Dev

调用未定义的方法 mysqli::result()

来自分类Dev

调用未定义的方法mysqli_stmt :: fetchColumn()

来自分类Dev

get_result 返回对象

来自分类Dev

未捕获的错误:调用未定义的函数 get_file_html()

来自分类Dev

错误:调用未定义的方法CodeIgniter \ Database \ MySQLi \ Result :: paginate()

来自分类Dev

致命错误:调用未定义的方法 CI_DB_mysqli_driver::result()

来自分类Dev

调用未定义的方法 mysqli_result::fetch()

来自分类Dev

PHP MySQLI调用未定义的方法mysqli_stmt :: bind_params()

来自分类Dev

num_rows:get_result与store_result

来自分类Dev

在boolean,mysqli_stmt :: store_result和mysqli_stmt :: close()上调用成员函数bind_param()

来自分类Dev

致命错误:使用点击计数器函数调用未定义的函数mysqli_result()

来自分类Dev

尝试从对象调用get()或set()时得到“未捕获的TypeError:未定义不是函数”

来自分类Dev

调用未定义的方法CI_DB_mysqli_result :: results()

Related 相关文章

  1. 1

    致命错误:未捕获错误:调用未定义的方法 mysqli_stmt::get_result()

  2. 2

    致命错误:调用未定义方法mysqli_stmt :: get_result()

  3. 3

    致命错误:调用未定义的方法mysqli_stmt :: get_result()

  4. 4

    致命错误:调用未定义的方法mysqli_stmt :: get_result()

  5. 5

    PHP mysqli_stmt :: get_result()是未定义的方法

  6. 6

    mysqli_stmt :: get_result()的致命错误

  7. 7

    PHP mysqli_stmt::get_result() is undefined method

  8. 8

    mysqli准备的语句get_result()?

  9. 9

    如何从 $stmt->get_result() 中检索单个值

  10. 10

    致命错误:未捕获错误:调用未定义的方法 mysqli_stmt::fetch_assoc()

  11. 11

    $ query-> get_result()是获取结果的正确方法吗?

  12. 12

    $ query-> get_result()是获取结果的正确方法吗?

  13. 13

    mysql中的store_result()和get_result()返回false

  14. 14

    php中的get_result()和store_result()有什么区别?

  15. 15

    PHP可以在mysqli get_result对象上调用哪些函数?

  16. 16

    mysqli:get_result功能,不带mysqlnd并带有准备好的语句

  17. 17

    调用未定义的方法 mysqli::result()

  18. 18

    调用未定义的方法mysqli_stmt :: fetchColumn()

  19. 19

    get_result 返回对象

  20. 20

    未捕获的错误:调用未定义的函数 get_file_html()

  21. 21

    错误:调用未定义的方法CodeIgniter \ Database \ MySQLi \ Result :: paginate()

  22. 22

    致命错误:调用未定义的方法 CI_DB_mysqli_driver::result()

  23. 23

    调用未定义的方法 mysqli_result::fetch()

  24. 24

    PHP MySQLI调用未定义的方法mysqli_stmt :: bind_params()

  25. 25

    num_rows:get_result与store_result

  26. 26

    在boolean,mysqli_stmt :: store_result和mysqli_stmt :: close()上调用成员函数bind_param()

  27. 27

    致命错误:使用点击计数器函数调用未定义的函数mysqli_result()

  28. 28

    尝试从对象调用get()或set()时得到“未捕获的TypeError:未定义不是函数”

  29. 29

    调用未定义的方法CI_DB_mysqli_result :: results()

热门标签

归档