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 "

"; - echo ""; - echo "
" . $row['titre'] . "
"; - echo "
" . date('d/m/Y', $date) . "
"; + foreach($resultat as $row) { + $date = strtotime($row['date']); + echo "

"; + echo ""; + echo "
" . $row['titre'] . "
"; + echo "
" . date('d/m/Y', $date) . "
"; + } } } ?>