add config.php

This commit is contained in:
powji17
2026-06-10 21:06:57 +07:00
parent 3370977289
commit 5b7fe28614
17 changed files with 115 additions and 47 deletions
@@ -1,6 +1,7 @@
<?php
header('Content-Type: application/json');
$conn = new mysqli('localhost', 'root', '', 'webgis');
require_once '../../../config.php';
$conn = getDB();
$result = $conn->query("SELECT * FROM rumah_prasejahtera");
$data = [];
while ($row = $result->fetch_assoc()) $data[] = $row;