PHP Classes
elePHPant
Icontem

Very usefull package.

Recommend this page to a friend!

      PHP MySQL to MySQLi  >  All threads  >  Very usefull package.  >  (Un) Subscribe thread alerts  
Subject:Very usefull package.
Summary:Package rating comment
Messages:1
Author:zinsou A.A.E.Mo´se
Date:2017-11-05 06:59:26
 

zinsou A.A.E.Mo´se rated this package as follows:

Utility: Good
Consistency: Good
Documentation: Sufficient
Examples: Good

  1. Very usefull package.   Reply   Report abuse  
zinsou A.A.E.Mo´se - 2017-11-05 06:59:26
Very usefull package.Anyway i got some fatal error so i write what users can do to avoid this very little issue.
first open the file mysql2i.class.php and just change the mysql_fetch_object code by
public static function mysql_fetch_object($result,$class_name=stdClass,$params=array()){
if($class_name!="stdClass"){
return mysqli_fetch_object($result,$class_name,$params);
}else{
return mysqli_fetch_object($result);
}
}

then open the mysql2i.func.php and change the mysql_fetch_object code by:

function mysql_fetch_object($result,$class_name="stdClass",$params=array()){

return mysql2i::mysql_fetch_object($result,$class_name,$params);

}

Without this change i got a beautiful fatal error that was telling me that argument params must be an array null given and when i made the change then i receive another fatal error class "" doesn't exist.This issue come when you call mysql_fecth_object function with just one argument.