Update file news.php
This commit is contained in:
parent
e1553c915d
commit
1f3d5581ac
@ -52,8 +52,9 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
$parsedown = new Parsedown();
|
||||
echo "<div class='article'>";
|
||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||
$req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE ID = :article");
|
||||
$req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE ID = :article AND classification <= :accreditation");
|
||||
$req->bindParam(":article", $article);
|
||||
$req->bindParam(":accreditation", $_SESSION['accreditation']);
|
||||
$req->execute();
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user