feat(landing-page):penambahan landing page utama pdemisah antar fitur

This commit is contained in:
2026-06-11 09:58:07 +07:00
parent 6b7fa7e467
commit d78ee0a79e
35 changed files with 5007 additions and 4753 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
header('Content-Type: application/json');
include __DIR__ . '/../../db_config.php';
$sql = "SELECT * FROM locations ORDER BY created_at DESC";
$result = $conn->query($sql);
$locations = [];
if (!$result) {
http_response_code(500);
echo json_encode(['status' => 'error', 'message' => 'Query gagal: ' . $conn->error]);
$conn->close();
exit;
}
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$locations[] = $row;
}
}
echo json_encode($locations);
$conn->close();
?>