commit 7b8e169defb986ea156b6a7dd734429b8d647b85
parent fac756a054ca27bb88c35a3ccf70453ec19bd756
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 12:53:27 +0100
maybe we have now the correct posts
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -71,7 +71,7 @@
function read_category(){
global $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' ")) {
+ if ($resultat = $connection->query("SELECT * FROM posts WHERE category LIKE '$category' AND LIKE '$id'")) {
//echo 'SELECT * FROM posts WHERE id LIKE '.$id;
//Put database data in variables
while($daten = $resultat->fetch_object() ){
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -168,7 +168,7 @@
}
}else{
if ($category){
- #$id = 1;
+ $id = 1;
include('../../core/backend/blog/posts.php');
while ($x < $category_id_clean+1){
include('../../core/config/connect.db.inc.php');
@@ -193,7 +193,7 @@
</p>
";
$x = $x+1;
- #$id = $id+1;
+ $id = $id+1;
next_id_only();
}
}else{