No mysqli_stmt_get_result() with mysqlnd

2020-02-07 07: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?

2条回答
走好不送
2楼-- · 2020-02-07 08:00

Enable nd_mysqli in php extensions and disable mysqli

查看更多
Summer. ? 凉城
3楼-- · 2020-02-07 08:00

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

It must work under any circumstances

查看更多
登录 后发表回答