Update ambil.php

This commit is contained in:
2026-06-09 13:35:25 +00:00
parent 3ef5a1078a
commit 20e10a65cf
+16
View File
@@ -6,6 +6,22 @@ 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"));