How can I use mysqli-> fetch_all if the PHP version on the server is 5.2

I developed the sample in the latest PHP 5.3 and later realized that justhost does not support mysqlnd and PHP 5.3, so I need to change the method of the db class that uses mysqli->fetch_all().

Does anyone know how to keep this effort? Maybe another way to use a plugin or middle layer or something else that I can switch or check if mysqlnd supports on the server or not?

+3
source share
1 answer

I would suggest continuing with the database tier, such as PDO or Zend_Db. Just choose the one you prefer.

Now, to fix all the existing code:

  • IDE , .
  • OSX/Linux, , sed, . , .
+1

All Articles