No mysqli_stmt_get_result() with mysqlnd(没有 mysqli_stmt_get_result() 和 mysqlnd)
问题描述
我准备好的语句在带有 PHP 5.4 的 MAMP 中工作得很好,无需调整 php.ini.在我的 GoDaddy 网站上,相同的代码失败:
My prepared statements work just fine in MAMP with PHP 5.4 and no need to tweak php.ini. On my GoDaddy site, the same code fails with:
致命错误:调用未定义的函数mysqli_stmt_get_result().
Fatal error: Call to undefined function mysqli_stmt_get_result().
我的 GoDaddy info.php 显示以下内容已启用:
My GoDaddy info.php shows the following as enabled:
mysqli 客户端 API 库版本 5.5.45
mysqli Client API library version 5.5.45
mysqlnd:mysqlnd 5.0.10
加载的插件:mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API 扩展:无
mysqlnd: mysqlnd 5.0.10
Loadedplugins:mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensions: none
GoDaddy 说他们的 PHP 工作得很好,虽然我怀疑他们测试过这个功能.他们声称这一定是代码错误,这让我觉得与错误的性质和代码在 MAMP 中工作的事实不一致.
GoDaddy says their PHP is working just fine, although I doubt they tested for this function. They claim it must be a code error, which strikes me as inconsistent with both, the nature of the error and the fact the code works in MAMP.
我的下一步是什么?
推荐答案
在 php 扩展中启用 nd_mysqli 并禁用 mysqli
Enable nd_mysqli in php extensions and disable mysqli
这篇关于没有 mysqli_stmt_get_result() 和 mysqlnd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:没有 mysqli_stmt_get_result() 和 mysqlnd
基础教程推荐
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何替换eregi() 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
