Initial commit

This commit is contained in:
2026-06-12 12:00:12 +07:00
commit 46d9a9d1a0
17 changed files with 1607 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
header('Content-Type: application/json');
require_once 'auth.php';
require_once 'config.php';
$result = mysqli_query($koneksi, "SELECT * FROM tempat_ibadah");
$data = [];
while ($row = mysqli_fetch_assoc($result)) {
$data[] = [
"id" => (int)$row['id'],
"jenis" => $row['jenis'],
"nama" => $row['nama'] ?? '',
"lat" => (float)$row['lat'],
"lng" => (float)$row['lng'],
"radius" => (int)$row['radius'],
"alamat" => $row['alamat'] ?? ''
];
}
echo json_encode($data);
mysqli_close($koneksi);