Skip to content
Snippets Groups Projects
Commit 77d20c55 authored by Christophorus Dharma Winata's avatar Christophorus Dharma Winata
Browse files

fix: query error

parent 563ce121
Branches
Tags
No related merge requests found
......@@ -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"];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment