ajustes para recuperar os dados pelo cpf professor
This commit is contained in:
@@ -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 = ?";
|
||||
|
||||
Reference in New Issue
Block a user