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('