Error "Call to undefined method mysqli_stmt :: get_result" and "Class 'mysqli' not found" [closed]

1

I'm developing a simple API using the Slim Framework.

When I run local tests all the functions work the way they should but I started to have problems when I went up to a certain hosting. It happens that when I call some function it is even found but it returns the following error:

  

Call to undefined method mysqli_stmt :: get_result () in.

I have already done some research before to try to solve the problem and had seen the need for 'mysqlnd' active in the hosting but when I request it to be active 'mysqli' is disabled and I have the following error:

  

Class 'mysqli' not found.

To make it clear the hosting used is localweb and the active php version is 5. (I had the same problem with Hostinger).

I did not know what to do at first because I'm starting Php so any help is welcome.

    
asked by anonymous 03.12.2015 / 22:58

1 answer

1

Apparently according to the hosting itself when they activated 1 the other was disabled. Fortunately the solution was even simple: It was upgraded to php 5.6 and everything went well. Thank you for your help.

    
04.12.2015 / 13:42