diff --git a/html/index.php b/html/index.php
index 8a4909a0..aea5c2c3 100644
--- a/html/index.php
+++ b/html/index.php
@@ -59,6 +59,32 @@ require "../include/functions.php";
echo $parsedown->text($markdownContent);
?>
+
prepare("SELECT articles.ID, articles.titre, articles.date, articles.image, articles.resume, users.username, users.display_name FROM articles JOIN users ON articles.auteur = users.ID WHERE articles.classification <= :accreditation ORDER BY date DESC LIMIT 3");
+ $req->bindParam(":search", $search);
+ $req->bindParam(":accreditation", $_SESSION['accreditation']);
+ $req->execute();
+ $resultat = $req->fetchAll(PDO::FETCH_ASSOC);
+
+ foreach($resultat as $row) {
+ $date = strtotime($row['date']);
+ echo '
';
+ echo '
';
+ echo '

';
+ echo '
';
+ echo '
';
+ echo '
n° ' . $row['ID'] . ' | ' . date('d/m/Y', $date) . ' | '. '
' . $row['display_name'] . '';
+ echo '
';
+ echo '' . $row['titre'] . '
';
+ echo '';
+ echo '
' . $row['resume'] . '
';
+ echo '
';
+ echo '
';
+ }
+ ?>
+