简体   繁体   中英

No mysqli_stmt_get_result() with mysqlnd

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?

在php扩展中启用nd_mysqli并禁用mysqli

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

It must work under any circumstances

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM