From eaf5330e2306931e9a0f0c2d019f3dc7da87e33c Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 12:56:42 +0200 Subject: [PATCH] debug --- gestionsite/saisieVotes.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index 55a9a11..62d9266 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -24,22 +24,22 @@ if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation)) if (empty($idVotation)) { choixVotation($path, 1, false); -} - -$method = getpost("method"); -$libelle = getpost("libelle"); -if (empty($method) or empty($libelle)) -{ - votesForm($path); }else { - $db = new db(); - $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; - print($query); - //$db->query($query); - $db->close(); + $method = getpost("method"); + $libelle = getpost("libelle"); + if (empty($method) or empty($libelle)) + { + votesForm($path); + }else + { + $db = new db(); + $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; + print($query); + //$db->query($query); + $db->close(); + } } - print('