add file
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$q = $conn->query("SELECT * FROM jalan_rusak");
|
||||
$data = [];
|
||||
while ($d = $q->fetch_assoc()) {
|
||||
$d['geometry'] = json_decode($d['geometry']);
|
||||
$data[] = $d;
|
||||
}
|
||||
echo json_encode($data);
|
||||
Reference in New Issue
Block a user