";
+ bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
+ $req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC");
+ $req->bindParam(":accreditation", $_SESSION['accreditation']);
+ $req->execute();
+ $resultat = $req->fetchAll(PDO::FETCH_ASSOC);
+
+ $date = new Datetime($row['date']);
+
+ if ($resultat) {
+ foreach($resultat as $row) {
+ echo "
"; + echo "";
+ }
+ }
+ echo "
";
} else {
"; + echo "
" . $row['ID'] . "
";
+ echo "" . $row['titre'] . "
";
+ echo "" . $date->format('d/m/Y') . "
";
+ echo "" . $row['auteur'] . "
";
+ echo "" . $row['classification'] . "
";
echo $parsedown->text($markdownContent);
echo "