Upload files to "Tugas2"

This commit is contained in:
2026-06-10 08:55:57 +00:00
parent 5363c9ae80
commit 38eccba1ef
5 changed files with 1864 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
// koneksi.php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', ''); // XAMPP default kosong
define('DB_NAME', 'webgis_sigma');
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
$conn->set_charset('utf8mb4');
if ($conn->connect_error) {
http_response_code(500);
die(json_encode(['status'=>'error','message'=>'Koneksi gagal: '.$conn->connect_error]));
}