model('apps'); $rows = $app->getList('app_name',array('app_id'=>$app_key)); return $rows[0]['app_name']; } function get_item_type(){ $rows = $this->db->select('select distinct(item_type) from '.$this->table_name(true).' '); return $rows; } }