Initial Commit: Tugas Semua Pertemuan
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
$result = mysqli_query($conn, "SELECT * FROM jalan_rusak ORDER BY created_at DESC");
|
||||
$data = [];
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
$data[] = $row;
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($data);
|
||||
?>
|
||||
Reference in New Issue
Block a user