Add cek_tabel.php

This commit is contained in:
2026-06-09 09:56:36 +00:00
parent 00d8836e87
commit b3c6be71cc
+17
View File
@@ -0,0 +1,17 @@
<?php
include('koneksi.php');
echo "<h2>Daftar Tabel yang Ada di Database Server:</h2>";
$result = mysqli_query($conn, "SHOW TABLES");
if (mysqli_num_rows($result) > 0) {
echo "<ul>";
while($row = mysqli_fetch_array($result)) {
echo "<li>🔹 Tabel: " . $row[0] . "</li>";
}
echo "</ul>";
} else {
echo "<p style='color:red;'>❌ KOSONG! Belum ada tabel sama sekali di database Anda.</p>";
}
?>