Exemplo n.º 1
0
 function Excluir()
 {
     session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     session_write_close();
     $obj = new clsPublicBairro(NULL, NULL, $this->idbai, NULL, $this->pessoa_logada);
     $excluiu = $obj->excluir();
     if ($excluiu) {
         $this->mensagem .= 'Exclusão efetuada com sucesso.<br>';
         header('Location: public_bairro_lst.php');
         die;
     }
     $this->mensagem = 'Exclusão não realizada.<br>';
     return FALSE;
 }