Commit 9c4e11c1 authored by Stephane Crozat's avatar Stephane Crozat

fix double appel SQL

parent 266e862f
......@@ -33,9 +33,6 @@ class DB {
$st = $this->conn->prepare($sql);
$st->execute();
$res = $st->fetchAll(PDO::FETCH_ASSOC);
$st = $this->conn->prepare($sql);
$st->execute();
$res = $st->fetchAll(PDO::FETCH_ASSOC);
if ($res) {
echo '<h2>Vos inscriptions</h2>';
foreach ($res as $row) {
......@@ -57,9 +54,6 @@ class DB {
$st = $this->conn->prepare($sql);
$st->execute();
$res = $st->fetchAll(PDO::FETCH_ASSOC);
$st = $this->conn->prepare($sql);
$st->execute();
$res = $st->fetchAll(PDO::FETCH_ASSOC);
if ($res) {
echo '<h2>Liste des Api '.$semester.$year.'</h2>';
foreach ($res as $row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment