ajouter deleteScientifique

pull/7/head
Gwenael PLANCHON 1 year ago
parent e327265d62
commit ceae92a88a

@ -57,8 +57,15 @@ class ScientifiqueGateway
":id"=>[$sci->getId(),$this->con::PARAM_INT]
]);
}
public function deleteScientifique(int $id): bool{
return $this->con->executeQuery(
"DELETE FROM Scientifique WHERE id=:id;"
,[
":id"=>[$id,$this->con::PARAM_INT]
]);
}
public function getScientifique(int $id): b {
public function getScientifique(int $id) {
$this->con->executeQuery(
"SELECT id, nom, prenom, photo, dateNaissance, descriptif, ratioTrouvee, idThematique, idDifficulte, idSexe FROM Scientifique WHERE id=:id;"
,[

Loading…
Cancel
Save