diff --git a/html/editpage.php b/html/editpage.php
index 60215ed2..77d5ff04 100644
--- a/html/editpage.php
+++ b/html/editpage.php
@@ -96,6 +96,17 @@ if(isset($fichier)) {
}
}
}
+ echo "
";
+ $bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
+ $req = $bdd->prepare("SELECT ID, titre FROM articles ORDER BY date DESC LIMIT 10");
+ $req->execute();
+ $resultat = $req->fetchAll(PDO::FETCH_ASSOC);
+
+ if ($resultat) {
+ foreach($resultat as $row) {
+ echo "
" . $row['titre'] . "
";
+ }
+ }
}
?>