commit 0899fd0a43987ef06c04b4565628d606b3492c72 parent 727752d623f9f94f864f97ac1f8db412f95a23a4 Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 23 Nov 2014 15:03:41 +0100 try to fix database Diffstat:
| M | core/backend/blog/posts.php | | | 17 | ++++++++--------- |
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -30,15 +30,14 @@ echo 'SELECT * FROM posts WHERE id LIKE '.$id; //Put database data in variables while($daten = $resultat->fetch_object() ){ - $post_id = $daten->id; - $post_title = $daten->title; - $post_text = $daten->text; - $post_author = $daten->author; - $post_date = $daten->date; - $post_categrory = $daten->category; - - - } + echo $daten; + $post_id = $daten->id; + $post_title = $daten->title; + $post_text = $daten->text; + $post_author = $daten->author; + $post_date = $daten->date; + $post_categrory = $daten->category; + } $resultat->close(); } else { //If no data in Database give error