From aea420efdca49615015f014fb9e3a59d5700da73 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 11:11:15 +0200 Subject: [PATCH] erreur de syntaxe --- gestionsite/saisieVotation.php | 2 +- gestionsite/saisieVotes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gestionsite/saisieVotation.php b/gestionsite/saisieVotation.php index 1ed7ba1..9ae2d35 100644 --- a/gestionsite/saisieVotation.php +++ b/gestionsite/saisieVotation.php @@ -27,7 +27,7 @@ if ($titre !== null and $libelle!== null and $dateDebut!== null and $dateFin !== $db = new db(); $query = "INSERT INTO liste_votations ('titre', 'libelle', 'status', 'dateDebut', 'dateFin') VALUES('" . $titre . "', '" . $libelle . "', '0', '" . $dateDebut . "', '" . $dateFin . "')"; // clotûre $db->query($query); - $db->close; + $db->close(); }else { votationForm($path, $titre, $libelle, $dateDebut, $dateFin); diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index 72ff932..761758f 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -38,7 +38,7 @@ if (empty($method) or empty($libelle)) $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; print($query); //$db->query($query); - $db->close; + $db->close(); } print('