From 2633bf30570b39f739e3750cc8bbd1a752f2114b Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 21 Sep 2022 21:37:57 +0200 Subject: [PATCH] debug --- gestion/saisieVotes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/saisieVotes.php b/gestion/saisieVotes.php index 49a2b9f..5c2d092 100644 --- a/gestion/saisieVotes.php +++ b/gestion/saisieVotes.php @@ -69,7 +69,7 @@ if (empty($idVotation)) votesForm($path); }else { - $query = "INSERT INTO liste_votes ('id', 'libelle', 'method', 'id_votation') VALUES ('0', " . $libelle . "', '" . $method . "', '" . $idVotation . "')"; + $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES (0, " . $libelle . "', '" . $method . "'," . $idVotation . ")"; print($query); $db->query($query); }