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)) {