ajout fermeture de la database
This commit is contained in:
@ -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';
|
||||
?>
|
||||
|
Reference in New Issue
Block a user