Fatal error: Call to undefined method mysqli_stmt :: get_result ()

I am working on a web application and PHP is my backend language ...

so far i have tested the site on localhost using easyPHP ( PHP version 5.4.6 ) ... and everything was fine! Today I tried to run a website on the internet ( PHP version 5.3.18 ) and I have this error:

Fatal error: Call to undefined method mysqli_stmt :: get_result () in et al.

I think this is weird because the get_result () method must be supported since PHP 5.3.0 ( source )

Do you have any ideas how to solve this problem?

Thank you in advance

UPDATE:

I didn't have any code because that's ok (it still works on my localhost) ... the problem must be in the network environment.

UPDATE 2: I am sharing phpInfo section with mysqli info ...

Localhost: Mysqli on localhost

Remote control: Mysqli online

+2


source to share


2 answers


I found the problem.

From php.net :

mysqli_stmt :: get_result is only available with mysqlnd .



My network environment, unlike my local environment, is missing mysqlnd!

So, I have to contact my host.

+3


source


I had the same problem and didn't have much confidence that my hosting provider would be enabling mysqlnd any time soon. So the shutdown endedmysqli_stmt::get_result()



Check if this solution works

0


source







All Articles