From bfc6594c2c54eeb016a4ec241629b208f2cbc74f Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 21 Sep 2022 21:34:48 +0200 Subject: [PATCH] debug --- gestion/saisieVotes.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gestion/saisieVotes.php b/gestion/saisieVotes.php index ad0b8ee..49a2b9f 100644 --- a/gestion/saisieVotes.php +++ b/gestion/saisieVotes.php @@ -5,8 +5,6 @@ require_once 'db.class.php'; require_once 'entete.php'; require_once 'fonctions.inc.php'; -echo "session ID " . SID; - $path = $_SERVER["PHP_SELF"]; $db = new db(); @@ -71,7 +69,7 @@ if (empty($idVotation)) votesForm($path); }else { - $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; + $query = "INSERT INTO liste_votes ('id', 'libelle', 'method', 'id_votation') VALUES ('0', " . $libelle . "', '" . $method . "', '" . $idVotation . "')"; print($query); $db->query($query); }