cleanup: remove import files and restore koneksi.php to production

This commit is contained in:
Anderi Saputra
2026-06-11 13:01:56 +07:00
parent 46ae0a8da6
commit c0469310cb
4 changed files with 4 additions and 350 deletions
+4 -3
View File
@@ -15,9 +15,10 @@ if ($conn->connect_errno) {
}
if (!$conn->select_db($dbname)) {
die(
"DEBUG: DB=$dbname | ERROR=" . $conn->error
);
if (!$conn->query("CREATE DATABASE IF NOT EXISTS `$dbname`") || !$conn->select_db($dbname)) {
http_response_code(500);
die("Database Kemiskinan belum tersedia. Buat database `$dbname` atau gunakan akun yang memiliki izin CREATE DATABASE.");
}
}
$conn->set_charset('utf8mb4');