Bug fix
This commit is contained in:
parent
e33960944f
commit
5965308226
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue