PHP Classes
elePHPant
Icontem

mysqli_fetch_object

Recommend this page to a friend!

      PHP MySQL to MySQLi  >  PHP MySQL to MySQLi package blog  >  How to Convert MySQL ...  >  All threads  >  mysqli_fetch_object  >  (Un) Subscribe thread alerts  
Subject:mysqli_fetch_object
Summary:Severity: Error --> Class '' not found etc
Messages:1
Author:Gary G Johnson
Date:2019-04-18 21:14:58
 

 


  1. mysqli_fetch_object   Reply   Report abuse  
Gary G Johnson - 2019-04-18 21:14:58
php 7.2 complains about mysql_fetch_object

mostly about class_name = null

I submit this as a possible change

public static function mysql_fetch_object($result,$class_name=null,$params){

if( empty($params) && $class_name==null){

return mysqli_fetch_object($result);
} else {
return mysqli_fetch_object($result,$class_name,$params);

}

}