Upload files to "Tugas4"

This commit is contained in:
2026-06-10 08:57:37 +00:00
parent 90d9bdc00f
commit 84b5db87ec
3 changed files with 1353 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'db_bantuan');
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if ($conn->connect_error) {
http_response_code(500);
die(json_encode([
'status' => 'error',
'message' => 'Koneksi database gagal: ' . $conn->connect_error
]));
}
$conn->set_charset('utf8mb4');