commit 9ed26ce7cc269e3500747d31a808d027ae87f229
parent 4899d312c04390f2d9299388cf941bdfa6efc434
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Mar 2015 17:45:59 +0100
maybe found the bug
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -257,6 +257,12 @@ class DbHandler {
echo "</br>";
$stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id = ?");
$stmt->bind_param("i", $id);
+ $test = is_int($x);
+ echo $test;
+ echo "</br>";
+ $x = $x+1;
+ echo $x;
+ $id = $id+1;
if ($stmt->execute()) {
$post["$x"] = $stmt->get_result()->fetch_assoc();
if ($post["$x"]["text"] != NULL){
@@ -269,12 +275,6 @@ class DbHandler {
} else {
return NULL;
}
- $test = is_int($x);
- echo $test;
- echo "</br>";
- $x = $x+1;
- echo $x;
- $id = $id+1;
}
}else{
$stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id = ?");