Update file upload.php

This commit is contained in:
Jan BELLON 2024-03-12 12:45:46 +00:00
parent b2dd49bdb1
commit 72829bfdbe

View File

@ -15,7 +15,7 @@ while(file_exists($wwwroot . "/content/journal/" . $filename . ".md")) {
}
if(isset($_POST['article-content'])) {
file_put_contents($wwwroot . "/content/journal/" . $filename . ".md", nl2br($_POST['page-content']));
file_put_contents($wwwroot . "/content/journal/" . $filename . ".md", nl2br($_POST['article-content']));
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
$upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, resume, classification) VALUES (:filename, :titre, :auteur, :resume, :classification)");