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