Artikel-Klasse + FileDatabase - Klasse

This commit is contained in:
NOrtmann1
2026-05-26 15:41:05 +02:00
parent b15421efee
commit 944f40d89f
7 changed files with 109 additions and 5 deletions
@@ -0,0 +1,3 @@
<?php
//TODO: implement this.
$db::newArticle($_POST['title'], $_POST['content'], $_POST['author']);
+8 -1
View File
@@ -1,3 +1,10 @@
<?php
require_once 'php/model/FileDatabase.php';
$article = new database();
require_once 'php/model/Article.php';
try {
$db = new FileDatabase();
} catch (PDOException $e) {
echo $e->getMessage();
}