From 05f8918b1ca24f1564037dfe7b39fa6cfad9451b Mon Sep 17 00:00:00 2001 From: AloneInSky Date: Sat, 6 Dec 2025 22:06:59 +0700 Subject: [PATCH] doing the hard works --- ingame.html | 522 --------------------------------------------- public/draw.php | 14 ++ public/winning.php | 23 ++ 3 files changed, 37 insertions(+), 522 deletions(-) delete mode 100644 ingame.html create mode 100644 public/draw.php create mode 100644 public/winning.php diff --git a/ingame.html b/ingame.html deleted file mode 100644 index 4240442..0000000 --- a/ingame.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - - -Hit or Run - - - -
-
-
-
-
Your Total Card: 0
-
- - - -
-
-
DEALER
-
-
Total Dealer: 0
-
- -
-
-
- -
- - -
-
-
- - -
-
-
- - - - diff --git a/public/draw.php b/public/draw.php new file mode 100644 index 0000000..44b9468 --- /dev/null +++ b/public/draw.php @@ -0,0 +1,14 @@ +prepare($sql); + $stmt->bind_param("i", $betvalue); + $stmt->execute(); + $stmt->close(); + + $conn->close(); +?> \ No newline at end of file diff --git a/public/winning.php b/public/winning.php new file mode 100644 index 0000000..c263fca --- /dev/null +++ b/public/winning.php @@ -0,0 +1,23 @@ +prepare($sql); + $stmt->bind_param("ii", $uid, $winvalue); + $stmt->execute(); + $stmt->close(); + + $sql2 = "UPDATE users SET money = money + ? WHERE uid = ?"; + $stmt2 = $conn->prepare($sql2); + $stmt2->bind_param("ii", $winvalue, $uid); + $stmt2->execute(); + $stmt2->close(); + + $conn->close(); +?> \ No newline at end of file