rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 9bb9fa4f84cd25c6a16deba34046d2278607d5ae
parent c2d384431857763b7b523b4d3f83c6e54b89e96a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 Jan 2015 19:57:21 +0100

new try

Diffstat:
Mcore/backend/admin/blog/newpost.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -27,6 +27,7 @@ while (ob_get_status()) { while($daten = $resultat->fetch_object() ){ $post_id_clean = $daten->id; $ids = $post_id_clean+1; + echo $ids; //var_dump($daten); } #$resultat->close(); @@ -45,11 +46,11 @@ while (ob_get_status()) { echo "test"; //if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) { - if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'date('Y-m-d H:i:s')', '$category')")) { + if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'Now()', '$category')")) { $resultat->close(); } //} ob_end_clean(); } -header( "Location: ../../../../" ); +//header( "Location: ../../../../" ); ?> \ No newline at end of file