diff --git a/server/controllers/itemdetail_query.php b/server/controllers/itemdetail_query.php index 273cfd436a271e0b9ad098ccafce77f3b327b437..f6daf49f76574708c033df37f4870d4ab9370c16 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"];