perbaikan
This commit is contained in:
parent
3769f376a8
commit
a976a29cf7
@ -3,7 +3,7 @@ require_once 'db.php';
|
|||||||
|
|
||||||
|
|
||||||
// Check table existence (using MySQLi)
|
// Check table existence (using MySQLi)
|
||||||
$checkTable = mysqli_query($conn, "SHOW TABLES LIKE 'leaderboard_sudoku'");
|
$checkTable = mysqli_query($conn, "SHOW TABLES LIKE 'users'");
|
||||||
if (mysqli_num_rows($checkTable) == 0) {
|
if (mysqli_num_rows($checkTable) == 0) {
|
||||||
$createSql = "
|
$createSql = "
|
||||||
CREATE TABLE leaderboard_sudoku (
|
CREATE TABLE leaderboard_sudoku (
|
||||||
|
|||||||
@ -3,9 +3,9 @@
|
|||||||
-- https://www.phpmyadmin.net/
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: 127.0.0.1
|
-- Host: 127.0.0.1
|
||||||
-- Generation Time: Dec 16, 2025 at 02:25 AM
|
-- Waktu pembuatan: 16 Des 2025 pada 02.44
|
||||||
-- Server version: 10.4.32-MariaDB
|
-- Versi server: 10.4.32-MariaDB
|
||||||
-- PHP Version: 8.2.12
|
-- Versi PHP: 8.2.12
|
||||||
|
|
||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
@ -24,7 +24,7 @@ SET time_zone = "+00:00";
|
|||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `leaderboard_sudoku`
|
-- Struktur dari tabel `leaderboard_sudoku`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `leaderboard_sudoku` (
|
CREATE TABLE `leaderboard_sudoku` (
|
||||||
@ -36,33 +36,33 @@ CREATE TABLE `leaderboard_sudoku` (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `leaderboard_sudoku`
|
-- Dumping data untuk tabel `leaderboard_sudoku`
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `leaderboard_sudoku` (`id`, `username`, `difficulty`, `time_seconds`, `created_at`) VALUES
|
INSERT INTO `leaderboard_sudoku` (`id`, `username`, `difficulty`, `time_seconds`, `created_at`) VALUES
|
||||||
(4, 'zura', 'easy', 106, '2025-12-15 18:44:09'),
|
(7, 'aldo', 'easy', 84, '2025-12-16 01:38:41'),
|
||||||
(5, 'angel', 'easy', 108, '2025-12-15 18:47:05'),
|
(8, 'farrel', 'easy', 106, '2025-12-16 01:41:19'),
|
||||||
(6, 'zura', 'easy', 137, '2025-12-16 01:14:18');
|
(9, 'angelica', 'easy', 93, '2025-12-16 01:43:18');
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for dumped tables
|
-- Indexes for dumped tables
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for table `leaderboard_sudoku`
|
-- Indeks untuk tabel `leaderboard_sudoku`
|
||||||
--
|
--
|
||||||
ALTER TABLE `leaderboard_sudoku`
|
ALTER TABLE `leaderboard_sudoku`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for dumped tables
|
-- AUTO_INCREMENT untuk tabel yang dibuang
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT for table `leaderboard_sudoku`
|
-- AUTO_INCREMENT untuk tabel `leaderboard_sudoku`
|
||||||
--
|
--
|
||||||
ALTER TABLE `leaderboard_sudoku`
|
ALTER TABLE `leaderboard_sudoku`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user