ajustes cadastro cpf pai e mae

This commit is contained in:
Reginaldo
2023-09-25 11:47:36 -03:00
parent af9ea17c99
commit 7c088faa60
4 changed files with 30 additions and 7 deletions

View File

@@ -256,9 +256,23 @@ class Controller extends DBA{
die('informação incompleta...');
}
}
public function buscarCPF($CPF,$CIDADE){
public function buscarCPFMae($CPF,$CIDADE){
if(!$CPF==''){
$this->sql = "SELECT * FROM ALUNO WHERE NR_CPF = ?";
$this->sql = "SELECT * FROM ALUNO WHERE CPF_MAE = ?";
$Con = new Controller();
$this->stmt = $Con -> getSTMT($CIDADE,$this->sql);
$this->stmt->bindValue(1,$CPF);
$this->stmt->execute();
$this->res = $this->stmt->fetch(PDO::FETCH_OBJ);
return $this-> res;
}else{
//caso o id não foi passado recebe essa mensagem
die('informação incompleta...');
}
}
public function buscarCPFPai($CPF,$CIDADE){
if(!$CPF==''){
$this->sql = "SELECT * FROM ALUNO WHERE CPF_PAI = ?";
$Con = new Controller();
$this->stmt = $Con -> getSTMT($CIDADE,$this->sql);
$this->stmt->bindValue(1,$CPF);