Initial commit - clean and ready for Coolify
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
$sql = "SELECT * FROM jalan";
|
||||
$result = $conn->query($sql);
|
||||
$data = array();
|
||||
while($row = $result->fetch_assoc()) {
|
||||
$data[] = $row;
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($data);
|
||||
$conn->close();
|
||||
?>
|
||||
Reference in New Issue
Block a user