From a976a29cf75a200902ab37b17458a1bd7b57b003 Mon Sep 17 00:00:00 2001 From: farrel Date: Tue, 16 Dec 2025 08:45:41 +0700 Subject: [PATCH] perbaikan --- leaderboard.php | 2 +- leaderboard_sudoku.sql | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/leaderboard.php b/leaderboard.php index ab8e2e2..2709839 100644 --- a/leaderboard.php +++ b/leaderboard.php @@ -3,7 +3,7 @@ require_once 'db.php'; // 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) { $createSql = " CREATE TABLE leaderboard_sudoku ( diff --git a/leaderboard_sudoku.sql b/leaderboard_sudoku.sql index 39df0b7..407353a 100644 --- a/leaderboard_sudoku.sql +++ b/leaderboard_sudoku.sql @@ -3,9 +3,9 @@ -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 --- Generation Time: Dec 16, 2025 at 02:25 AM --- Server version: 10.4.32-MariaDB --- PHP Version: 8.2.12 +-- Waktu pembuatan: 16 Des 2025 pada 02.44 +-- Versi server: 10.4.32-MariaDB +-- Versi PHP: 8.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 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` ( @@ -36,33 +36,33 @@ CREATE TABLE `leaderboard_sudoku` ( ) 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 -(4, 'zura', 'easy', 106, '2025-12-15 18:44:09'), -(5, 'angel', 'easy', 108, '2025-12-15 18:47:05'), -(6, 'zura', 'easy', 137, '2025-12-16 01:14:18'); +(7, 'aldo', 'easy', 84, '2025-12-16 01:38:41'), +(8, 'farrel', 'easy', 106, '2025-12-16 01:41:19'), +(9, 'angelica', 'easy', 93, '2025-12-16 01:43:18'); -- -- Indexes for dumped tables -- -- --- Indexes for table `leaderboard_sudoku` +-- Indeks untuk tabel `leaderboard_sudoku` -- ALTER TABLE `leaderboard_sudoku` 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` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;