rpicms

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

commit 0cc78ad390f83c6c9b4599477054c607da02bbf6
parent 282ab5e5db869e41352f1f7f3f41812bae3870b8
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 12:39:37 +0100

maybe fixed database problem

Diffstat:
Mcore/backend/blog/posts.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -23,7 +23,7 @@ }else{ //Check if Data in it echo $id; - if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE $id')) { + if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) { //Put database data in variables while($daten = $resultat->fetch_object() ){ $post_id = $daten->id; @@ -37,12 +37,12 @@ } else { //If no data in Database give error echo "Nothing to read from Database!"; - /*$post_id = "Database error!"; + $post_id = "Database error!"; $post_title = "Database error!"; $post_text = "Database error!"; $post_author = "Database error!"; $post_date = "Database error!"; - $post_categrory = "Database error!";*/ + $post_categrory = "Database error!"; }