Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Obter Fase
- public function obter_fase($id)
- {
- $this->db->from($this->tbl_empresa_fase);
- $this->db->select("tbl_empresa_fase.*, IF(tbl_empresa_fase.crud = 'C', 'R', 'C') as crud", FALSE);
- if (is_array($id))
- {
- $this->db->where_in('campanha_id',$id);
- }
- else
- {
- $this->db->where('campanha_id',$id);
- }
- $this->db->order_by('campanha_id');
- $query = $this->db->get();
- $item = $query->result_array();
- return $item;
- }
Add Comment
Please, Sign In to add comment