From 8d27f0db8a42c3146fcf6e54fc14f7d4d1064c57 Mon Sep 17 00:00:00 2001 From: Andreas Date: Tue, 24 Sep 2019 14:42:47 +0200 Subject: [PATCH] fixed minor mistake --- dev_mvc/controller/db/DBThread.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev_mvc/controller/db/DBThread.php b/dev_mvc/controller/db/DBThread.php index 75efe22..0c25e0a 100644 --- a/dev_mvc/controller/db/DBThread.php +++ b/dev_mvc/controller/db/DBThread.php @@ -11,8 +11,7 @@ class DBThread extends Database { } static function getAllThreads(){ $con = self::connectToDB(); - $query = $con->prepare("SELECT * FROM thread WHERE ID = :id"); - $query->bindParam(":id", $id); + $query = $con->prepare("SELECT * FROM thread"); $query->execute(); $threadArray = []; while($result = $query->fetch(PDO::FETCH_BOTH)){