No mysqli_stmt_get_result() with mysqlnd

爷,独闯天下 提交于 2019-12-17 21:34:29

问题


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:

Fatal error: Call to undefined function mysqli_stmt_get_result().

My GoDaddy info.php shows the following as enabled:

mysqli Client API library version 5.5.45

mysqlnd: mysqlnd 5.0.10
Loadedplugins:mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensions: none

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.

What's my next step?


回答1:


Enable nd_mysqli in php extensions and disable mysqli




回答2:


Go to control panel of go daddy Then select php and then select nd_mysqli and save

It must work under any circumstances



来源:https://stackoverflow.com/questions/36874407/no-mysqli-stmt-get-result-with-mysqlnd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!