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
Post a Comment