commit b890d754b81814ed1f46ed6ddc8284f97c707260
parent cafb4aeb135367ccd0d1fd208f02b9de8734eeda
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 18 Mar 2015 21:11:14 +0100
new debug code
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/api/v1/DbHandler.class.php b/core/api/v1/DbHandler.class.php
@@ -244,7 +244,8 @@ class DbHandler {
echo "id=null";
return $all;
}else{
- echo "id!=null";
+ echo "id=$post_id";
+
$stmt = $this->conn->prepare("SELECT id,title,text,author,category,date FROM posts WHERE id = ?");
$stmt->bind_param("i", $post_id);
print_r($stmt);