rpicms

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

commit 7c9703f1185dbd97549b2fb95235ad9de7611710
parent eb8dfb74f8c4eeefda6e479543ed5d3c12c053b4
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 20 Mar 2015 17:32:48 +0100

more debug

Diffstat:
Mcore/api/v1/DbHandler.class.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php @@ -247,15 +247,16 @@ class DbHandler { } if ($post_id == NULL) { $x = 1; - #var_dump($post_id_clean_array); - echo $post_id_clean; while ($x < $post_id_clean+1){ $stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id = ?"); $stmt->bind_param("i", $id); if ($stmt->execute()) { $post["$x"] = $stmt->get_result()->fetch_assoc(); echo $x; - var_dump($post); + echo "</br>"; + echo $id; + echo "</br>"; + echo $post_id_clean; if ($post["$x"]["text"] != NULL){ $post["$x"]["text"] = html_entity_decode($post["text"]); }else{