Upload files to "tugas03"

This commit is contained in:
2026-06-09 12:50:38 +00:00
parent d2af6d7189
commit d292e5f49b
4 changed files with 177 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
include 'connect.php';
header('Content-Type: application/json; charset=utf-8');
$sql = "SELECT * FROM tugas03_spbu ORDER BY nama_spbu ASC";
$result = $conn->query($sql);
$data = [];
while ($row = $result->fetch_assoc()) {
$data[] = $row;
}
echo json_encode($data);
$conn->close();
?>