erste funktionale Version
This commit is contained in:
@@ -21,17 +21,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
|
||||
$articleManager->addArticle($title, $content, $author, $category, $tags);
|
||||
|
||||
foreach ($articleManager->getAllArticles() as $article) {
|
||||
echo htmlspecialchars($article["id"])."<br>";
|
||||
echo htmlspecialchars($article['title'])."<br>";
|
||||
echo htmlspecialchars($article['content'])."<br>";
|
||||
echo htmlspecialchars($article['author'])."<br>";
|
||||
echo htmlspecialchars($article['category'])."<br>";
|
||||
echo htmlspecialchars($article['tags'])."<br>";
|
||||
echo htmlspecialchars($article['date'])."<br>";
|
||||
}
|
||||
// Weiterleitung zur Homepage
|
||||
//header("location: ../../index.php");
|
||||
header("location: ../../index.php");
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user