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(":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 '
';
}
?>