query($query); $votationName = $db->result->fetch_assoc(); print('

') . EOL; print('

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

'); $path = $_SERVER["PHP_SELF"]; print if (array_key_exists("idVotation", $GLOBALS) and empty($idVotation)) { $idVotation = $GLOBALS["idVotation"]; } if (empty($idVotation)) { choixVotation($path, 0, false); }else { $method = getpost("method"); $libelle = getpost("libelle"); if (empty($method) or empty($libelle)) { votesForm($path); }else { $query = "INSERT INTO liste_votes ('libelle', 'method', 'id_votation') VALUES ('" . $libelle . "', '" . $method . "', '" . $idVotation . "')"; print($query); //$db->query($query); } } $db->close(); print('
'); require_once("footer.html"); ?>