php - How to call my mysqli_result class -


i create mysqli_result class :

class mysqli_result{     private $res;     private $row;     private $field=0;  private function __construct(){  }  static public function get($res,$row,$field){     $res->data_seek($row);      $datarow = $res->fetch_array();      return $datarow[$field];  } 

}

the main problem got 3 parameters while in of old mysql_result got 2 parameters ($res,$field).

so don't know suppose put in $row parameter.

thanks ;)


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -