Update ambil.php

This commit is contained in:
2026-06-09 13:42:16 +00:00
parent c578b94a37
commit a4bb098d1f
-15
View File
@@ -6,22 +6,7 @@ header('Content-Type: application/json; charset=UTF-8');
include 'auth.php'; // Middleware auth
include 'koneksi.php';
echo "<pre>";
echo "=== TABEL IBADAH ===\n";
$q = mysqli_query($conn, "DESCRIBE tabel_ibadah");
while($r = mysqli_fetch_assoc($q)){
print_r($r);
}
echo "\n\n=== TABEL PENDUDUK ===\n";
$q = mysqli_query($conn, "DESCRIBE tabel_penduduk");
while($r = mysqli_fetch_assoc($q)){
print_r($r);
}
echo "</pre>";
exit;
if (!$conn) {
echo json_encode(array("status" => "error", "message" => "Gagal konek DB"));