";
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
- $req = $bdd->prepare("SELECT ID, titre, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10");
+ $req = $bdd->prepare("SELECT ID, titre, date FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10");
$req->bindParam(":accreditation", $_SESSION['accreditation']);
$req->execute();
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
@@ -131,8 +131,7 @@ if(isset($fichier)) {
echo "
";
echo "
";
echo "" . $row['titre'] . "
";
- echo "
" . $date->format('d/m/Y') . "
";
- echo "
" . $classifications[(int)$row['classification']] . "
";
+ echo "
" . $date->format('d/m/Y') . "
";
}
}
echo "