From 59653082269e9a8d1710801b8711856b15907347 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 1 Jul 2018 16:27:20 +0530 Subject: [PATCH] Bug fix --- webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.php b/webhook.php index a2c786f..fe38654 100644 --- a/webhook.php +++ b/webhook.php @@ -107,7 +107,7 @@ function deposit(){ die("Connection failed: " . $conn->connect_error); } $stmt = $conn->prepare("UPDATE req set quantity = quantity - ? where id = ?;"); - $stmt->bind_param('is', $item_id, $quantity); + $stmt->bind_param('is', $quantity, $item_id); $stmt->execute(); $conn->close(); send_html("Deposited!");