From 77d20c556c453b7f7732ed52793b37a0282bb3aa Mon Sep 17 00:00:00 2001
From: christodharma <13521009@std.stei.itb.ac.id>
Date: Mon, 9 Oct 2023 14:43:32 +0700
Subject: [PATCH] fix: query error

---
 server/controllers/itemdetail_query.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/controllers/itemdetail_query.php b/server/controllers/itemdetail_query.php
index 273cfd4..f6daf49 100644
--- a/server/controllers/itemdetail_query.php
+++ b/server/controllers/itemdetail_query.php
@@ -3,7 +3,7 @@
     global $conn; $conn = connect_database();
     if ($_SERVER["REQUEST_METHOD"] == "POST" and $_POST["signal"] == "make-purchase") {
         global $conn;
-        $query = "SELECT * FROM `item` WHERE username = (?)
+        $query = "SELECT * FROM `item` WHERE item_id = (?)
         ";
         $item_id = $_POST["item_id"];
 
-- 
GitLab