This commit is contained in:
ody 2025-12-03 18:48:53 +07:00
parent f52d05cc53
commit 46b09acf12

View File

@ -382,12 +382,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}); });
localStorage.setItem('playerBalance', serverBalance); 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> </script>
</body> </body>
</html> </html>