first commit

This commit is contained in:
2026-06-11 21:15:09 +07:00
commit 9cc3c343ac
16 changed files with 1822 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
include 'koneksi.php';
// Query ambil semua data
$query = "SELECT * FROM spbu";
$result = mysqli_query($conn, $query);
$data = [];
while($row = mysqli_fetch_assoc($result)){
$data[] = $row;
}
// Kirim dalam format JSON
header('Content-Type: application/json');
echo json_encode($data);
?>