fix: remove hardcoded webgis_kemiskinan database"
This commit is contained in:
@@ -15,7 +15,6 @@ mysqli_set_charset($conn, "utf8mb4");
|
|||||||
// Helper: tambah kolom hanya jika belum ada
|
// Helper: tambah kolom hanya jika belum ada
|
||||||
function addColumnIfNotExists($conn, $table, $column, $definition)
|
function addColumnIfNotExists($conn, $table, $column, $definition)
|
||||||
{
|
{
|
||||||
$db = mysqli_select_db($conn, 'webgis_kemiskinan') ? 'webgis_kemiskinan' : '';
|
|
||||||
$check = mysqli_query(
|
$check = mysqli_query(
|
||||||
$conn,
|
$conn,
|
||||||
"SELECT COUNT(*) as cnt FROM information_schema.COLUMNS
|
"SELECT COUNT(*) as cnt FROM information_schema.COLUMNS
|
||||||
|
|||||||
Reference in New Issue
Block a user