Upload files to "/"

This commit is contained in:
2026-06-12 17:50:53 +00:00
parent 11508f5213
commit 73327505be
3 changed files with 17 additions and 20 deletions
+5 -10
View File
@@ -1,13 +1,8 @@
<?php
$conn = new mysqli("localhost", "root", "", "gis_spbu");
$result = $conn->query("SELECT * FROM spbu");
require_once 'koneksi.php';
header('Content-Type: application/json');
$result = $conn->query("SELECT * FROM spbu ORDER BY id DESC");
$data = [];
while($row = $result->fetch_assoc()){
$data[] = $row;
}
while ($row = $result->fetch_assoc()) { $data[] = $row; }
echo json_encode($data);
?>
?>
+6 -5
View File
@@ -1,7 +1,8 @@
<?php
$conn = new mysqli("localhost","root","","gis_spbu");
$result=$conn->query("SELECT * FROM jalan");
$data=[];
while($row=$result->fetch_assoc()) $data[]=$row;
require_once 'koneksi.php';
header('Content-Type: application/json');
$result = $conn->query("SELECT * FROM jalan ORDER BY id DESC");
$data = [];
while ($row = $result->fetch_assoc()) { $data[] = $row; }
echo json_encode($data);
?>
?>
+6 -5
View File
@@ -1,7 +1,8 @@
<?php
$conn = new mysqli("localhost","root","","gis_spbu");
$result=$conn->query("SELECT * FROM kavling");
$data=[];
while($row=$result->fetch_assoc()) $data[]=$row;
require_once 'koneksi.php';
header('Content-Type: application/json');
$result = $conn->query("SELECT * FROM kavling ORDER BY id DESC");
$data = [];
while ($row = $result->fetch_assoc()) { $data[] = $row; }
echo json_encode($data);
?>
?>