问题
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