Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function listarTodosInscritos(){
- $this->db->get('participantes');
- $this->db->join('entidades', 'entidadades.entidade_id = participantes.id');
- $this->db->join('enderecos', 'enderecos.id = entidades.endereco_id');
- $this->db->join('municipios', 'municipios.id = enderecos.municipio_id');
- $this->db->limit(3);
- echo '<pre>';
- print_r($this->db->result_array());
- exit();
- //return $this->db->result();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement