diff --git a/html/news.php b/html/news.php index 14b80835..ea835268 100644 --- a/html/news.php +++ b/html/news.php @@ -76,11 +76,13 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $resultat = $req->fetchAll(PDO::FETCH_ASSOC); if ($resultat) { - $date = strtotime($row['date']); - echo "
"; + foreach($resultat as $row) { + $date = strtotime($row['date']); + echo ""; + } } } ?>