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