primeiro commit

This commit is contained in:
Reginaldo
2023-05-31 16:16:09 -03:00
commit bc6d88534a
5 changed files with 109 additions and 0 deletions

15
classes/alunos.class.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
//chama a classe conexao
require_once('conexao.class.php');
class Alunos extends DB{
//criada a função para faz o get de todos alunos da tabela
public function getAlunos(){
$this->sql = "SELECT * FROM ALUNO";
$this->stmt = self::$inst->prepare($this->sql);
$this->stmt -> execute();
$this->res = $this->stmt->fetchAll(PDO::FETCH_ASSOC);
//print_r($this->res);
return $this->res;
}
}