Update file journal.php
This commit is contained in:
parent
910d108af9
commit
582b53fff8
@ -50,7 +50,9 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
|||||||
|
|
||||||
require_once '../include/parsedown.php';
|
require_once '../include/parsedown.php';
|
||||||
$parsedown = new Parsedown();
|
$parsedown = new Parsedown();
|
||||||
|
echo "<div class='article'><div class='article-content'>";
|
||||||
echo $parsedown->text($markdownContent);
|
echo $parsedown->text($markdownContent);
|
||||||
|
echo "</div></div>";
|
||||||
} else {
|
} else {
|
||||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||||
$req = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles ORDER BY date DESC");
|
$req = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles ORDER BY date DESC");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user