This commit is contained in:
Ceda EI 2018-07-01 16:27:20 +05:30
parent e33960944f
commit 5965308226
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ function deposit(){
die("Connection failed: " . $conn->connect_error); die("Connection failed: " . $conn->connect_error);
} }
$stmt = $conn->prepare("UPDATE req set quantity = quantity - ? where id = ?;"); $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(); $stmt->execute();
$conn->close(); $conn->close();
send_html("Deposited!"); send_html("Deposited!");