Delete Tugas2/koneksi.php
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
<?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]));
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user