Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.59 KB | None | 0 0
  1. elsif($sessao eq "novaprofissao")
  2.     {
  3.         my $profissao=$Request->Form("profissao")->item();
  4.         my $descricao=$Request->Form("descricao")->item();
  5.         if(! length($descricao)>0)
  6.         {
  7.                 $descricao=" ";
  8.         }
  9.         $conexao = core->conectar();
  10.         my $dbh =$conexao->prepare("INSERT INTO tbl_recursoshumanos_profissoes(profissao,descricao) VALUES (?,?);");
  11.         $dbh->execute($profissao,$descricao);
  12.         $dbh->finish;
  13.         $conexao->disconnect;
  14.         my $acao="Criou profissão - $profissao";
  15.         my $usuario=usuario->nome($Request, $Response);
  16.         core->auditoria($usuario, $acao, $Request, $Response);
  17.         print "salvo";
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement