Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.     public function listarTodosInscritos(){
  2.         $this->db->get('participantes');
  3.         $this->db->join('entidades', 'entidadades.entidade_id = participantes.id');
  4.         $this->db->join('enderecos', 'enderecos.id = entidades.endereco_id');
  5.         $this->db->join('municipios', 'municipios.id = enderecos.municipio_id');
  6.         $this->db->limit(3);
  7.         echo '<pre>';
  8.         print_r($this->db->result_array());
  9.         exit();
  10.         //return $this->db->result();        
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement