Commit 13386191fca00efa5d4d2eeef56c18adaea3fec9
1 parent
aef133b1
Exists in
mysqli
Classe DB
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
restrito/sis_param/manutencao.php
@@ -39,9 +39,9 @@ | @@ -39,9 +39,9 @@ | ||
39 | //verifica se ja existe registro cadastrado com a informaçao passada --- | 39 | //verifica se ja existe registro cadastrado com a informaçao passada --- |
40 | if ($acao=="Incluir") | 40 | if ($acao=="Incluir") |
41 | { | 41 | { |
42 | - $sql = "select * from sis_param where sistema = '$sistema'"; | 42 | + $sql = "select * from sis_param where sistema = '".DB::esc($sistema)."'"; |
43 | 43 | ||
44 | - if(mysql_num_rows(execQuery($sql)) > 0) | 44 | + if(mysqli_num_rows(DB::execQuery($sql)) > 0) |
45 | { | 45 | { |
46 | $erro = "Nome do Sistema já existe no cadastro."; | 46 | $erro = "Nome do Sistema já existe no cadastro."; |
47 | return false; | 47 | return false; |