fetch_data(); } protected function fetch_data(){ // les data... $this->transactype_list=array(); $rqt = "select * from transactype order by transactype_name"; $res = pmb_mysql_query($rqt); $i=0; if(pmb_mysql_num_rows($res)){ while($row = pmb_mysql_fetch_object($res)){ $this->transactype_list[$i]['id'] = $row->transactype_id; $this->transactype_list[$i]['name'] = $row->transactype_name; $this->transactype_list[$i]['unit_price'] = $row->transactype_unit_price; $this->transactype_list[$i]['quick_allowed'] = $row->transactype_quick_allowed; $i++; } } } public function get_data(){ return $this->transactype_list; } public function get_count(){ return count($this->transactype_list); } }