rpicms

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

commit d44aa32078a95d72de3bc86cbb608806aa771082
parent eec100513e769b162cddc345202974c572d93fbe
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 13:02:16 +0100

new sql query for categories

Diffstat:
Mcore/backend/blog/posts.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -71,7 +71,7 @@ function read_category(){ global $id, $category, $connection, $read, $category_id_clean; global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category, $post_text_short; - if ($resultat = $connection->query("SELECT * FROM posts WHERE category LIKE '$category' AND LIKE '$id'")) { + if ($resultat = $connection->query("SELECT * FROM posts WHERE category LIKE '$category' AND id LIKE '$id'")) { //echo 'SELECT * FROM posts WHERE id LIKE '.$id; //Put database data in variables while($daten = $resultat->fetch_object() ){