2 $sql = 'SELECT model_name,model_price_out FROM model';
3 $result = $this->db
->safe_query_fetch($sql);
4 foreach($result as $item) $items[$item['model_name']]=$item['model_price_out'];
5 die(print_r(json_decode(json_encode($items))));
This page took 0.308971 seconds and 4 git commands to generate.