1
0

ajout fermeture de la database

This commit is contained in:
2022-09-19 12:04:33 +02:00
parent cf526f166c
commit cd91a95aea
5 changed files with 18 additions and 5 deletions

View File

@ -22,6 +22,7 @@ print '<script type="text/javascript">
</script>';
$db = new db();
print(' <br><br>
<!-- lalis Grid Section -->
@ -29,7 +30,8 @@ print(' <br><br>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center"><h3>LISTE DES VOTATIONS</h3>');
if ( empty( $_GET["id"]))
if ( empty( $_GET["id"]))
{
choixVotation('/vote.resultat.php');
}else
@ -38,6 +40,7 @@ if ( empty( $_GET["id"]))
print('
<h3>VOTE</h3>
<h4>');
$query = 'SELECT *, UNIX_TIMESTAMP(DATE_ADD(dateFin, INTERVAL 1 DAY)) as tf FROM liste_votations WHERE id=' . $db->protect($idVotation);
$result = $db->query($query);
$votation = $db->result->fetch_array(MYSQLI_ASSOC);
@ -111,6 +114,7 @@ if ( empty( $_GET["id"]))
</section>');
}
$db->close();
require_once 'footer.html';
?>