rpicms

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

commit 78e3abc8a88d516464be88eea9294c5db8c64002
parent 7de5e632475f8f1c3f205b57d43cd1b155bf4a56
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 16:57:59 +0100

next try :D I see the light at the end of the tunnel xD

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -26,7 +26,7 @@ function read(){ global $id, $connection, $read, $post_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory; - if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) { + if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE $id')) { //echo 'SELECT * FROM posts WHERE id LIKE '.$id; //Put database data in variables while($daten = $resultat->fetch_object() ){ @@ -42,7 +42,7 @@ } else { global $id, $connection, $read, $post_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory; - if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) { + if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE $id')) { while($daten = $resultat->fetch_object() ){ //If no data in Database give error echo 'SELECT * FROM posts WHERE id LIKE '.$id;