UAS SIG Proyek WebGis

This commit is contained in:
L4zyL4mb
2026-06-10 21:46:56 +07:00
commit df18a7a99a
35 changed files with 8977 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
// db_connect.php - Koneksi Database
$host = "localhost";
$dbname = "webgis_spbu";
$username = "root";
$password = "";
try {
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
die(json_encode(["error" => "Koneksi gagal: " . $e->getMessage()]));
}
?>