1st commit: version 1.0 WebGis-Pemetaan-Kemiskinan

This commit is contained in:
2026-06-03 02:09:03 +07:00
commit 313d2fd5a7
48 changed files with 4839 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
header("Content-Type: application/json; charset=UTF-8");
require_once '../koneksi.php';
try {
$stmt = $conn->query("SELECT * FROM jalan_polylines ORDER BY created_at DESC");
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($data);
} catch(PDOException $e) {
http_response_code(500);
echo json_encode(["error" => "Gagal mengambil data: " . $e->getMessage()]);
}
?>