coba2
This commit is contained in:
parent
f52d05cc53
commit
46b09acf12
@ -382,12 +382,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
});
|
||||
localStorage.setItem('playerBalance', serverBalance);
|
||||
|
||||
$update = "UPDATE users SET bank = ? WHERE id = ?";
|
||||
$stmt = mysqli_prepare($conn, $update);
|
||||
mysqli_stmt_bind_param($stmt, "ii", $newBank, $_SESSION['user_id']);
|
||||
mysqli_stmt_execute($stmt);
|
||||
$_SESSION['bank'] = $newBank;
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user