From 70f82f66ba2695dc6db20ac91f86f88dff14a8e2 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 19 Sep 2022 13:17:44 +0200 Subject: [PATCH] debug --- gestionsite/saisieVotes.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gestionsite/saisieVotes.php b/gestionsite/saisieVotes.php index cde9813..3fcd591 100644 --- a/gestionsite/saisieVotes.php +++ b/gestionsite/saisieVotes.php @@ -7,19 +7,23 @@ require_once 'fonctions.inc.php'; $db = new db(); +$idVotation = getpost("id"); + +$query = "SELECT libelle FROM liste_votations WHERE id='" . $idVotation . "'"; +$db->query($query); +$votationName = $db->result->fetch_assoc(); + print('

') . EOL; print('
-

Nouveau vote pour la votation :

'); +

Nouveau vote pour la votation : ' . $votationName["libelle"]. '

'); $path = $_SERVER["PHP_SELF"]; -$idVotation = getpost("id"); -$query = "SELECT libelle FROM liste_votations WHERE id='" . $idVotation . "'"; -$db->query($query); +print if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation)) {