没有mysqli_stmt_get_result()与mysqlnd [英] No mysqli_stmt_get_result() with 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,示例,调试跟踪,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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!