Memperbaiki penamaan folder dan menambahkan index.html sebagai landing page
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
$conn = new mysqli('localhost', 'root', '', 'webgis');
|
||||
$result = $conn->query("SELECT * FROM rumah_ibadah");
|
||||
$data = [];
|
||||
while ($row = $result->fetch_assoc()) $data[] = $row;
|
||||
echo json_encode($data);
|
||||
?>
|
||||
Reference in New Issue
Block a user