Guest User

Untitled

a guest
Dec 14th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Obter Fase
  2. public function obter_fase($id)
  3. {
  4. $this->db->from($this->tbl_empresa_fase);
  5. $this->db->select("tbl_empresa_fase.*, IF(tbl_empresa_fase.crud = 'C', 'R', 'C') as crud", FALSE);
  6. if (is_array($id))
  7. {
  8. $this->db->where_in('campanha_id',$id);
  9. }
  10. else
  11. {
  12. $this->db->where('campanha_id',$id);
  13. }
  14. $this->db->order_by('campanha_id');
  15. $query = $this->db->get();
  16. $item = $query->result_array();
  17. return $item;
  18. }
Add Comment
Please, Sign In to add comment