commit f0efada3dd70fc482fc9d2c89483ee2a2b117cfc
parent 669b45d1abd93d42859636396bb326737504805b
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 14 Dec 2014 11:41:55 +0100
starting with newpost.php
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -18,4 +18,19 @@ if ($root_3[1] == 'core') {
}
include($root . '/core/config/variables.config.php');
+if ($resultat = $connection->query('SELECT id FROM posts')) {
+ while($daten = $resultat->fetch_object() ){
+ $post_id_clean = $daten->id;
+ $ids = $post_id_clean+1;
+ #var_dump($daten);
+ }
+ #$resultat->close();
+}
+
+$author = "not implemented yet";
+
+if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', '$date', '$category')")) {
+ $resultat->close();
+}
+
?>
\ No newline at end of file