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