ajustes para recuperar os dados pelo cpf professor

This commit is contained in:
Reginaldo
2023-11-13 13:34:36 -03:00
parent 23ff990c2e
commit 171cc56aea
3 changed files with 21 additions and 0 deletions

View File

@@ -270,6 +270,19 @@ class Controller extends DBA{
die('informação incompleta...');
}
}
public function getLoginProf($CPF){
if(!$CPF==''){
$this->sql = "SELECT * FROM acessos WHERE CPF = ?";
$this->stmt = $this->getMARIA()->prepare($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 buscarCPFMae($CPF,$CIDADE){
if(!$CPF==''){
$this->sql = "SELECT * FROM ALUNO WHERE CPF_MAE = ?";