Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $consulta = $this->db->get('curso_configurar')->result();
  2. foreach($consulta as $valor){
  3. $ids[] = $valor->cur_id;
  4. }
  5.  
  6. $this->db->select('curso.cur_titulo, curso.cur_id');
  7. $this->db->where_not_in("curso.cur_id", $ids);
  8. $consulta_lista = $this->db->get('curso')->result();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement