Add cek_tabel.php
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user