gestionFiche et connectionPDO

This commit is contained in:
2023-12-21 11:56:22 +01:00
parent 674514ed06
commit e55df1b480
3 changed files with 86 additions and 103 deletions

View File

@@ -0,0 +1,21 @@
<?php
class Class_gestionFiche
{
private $pdo = null;
public function __construct(PdoGsb $pDO)
{
$this->pdo = $pDO->getPdoGsb();
}
public function getLesUtilisateurs(): array
{
$req = 'SELECT "uId", "uNom", "uPrenom" FROM utilisateur WHERE "uStatut"!=0 ORDER BY "uNom" ASC;';
$result = $this->pdo->prepare($req);
$result ->execute();
return $result->fetchAll();
}
}