<?php
$conn = new mysqli('localhost', 'root', '', 'siakad');
if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }

$sql = "ALTER TABLE mahasiswa ADD COLUMN tanggal_daftar DATE NULL, ADD COLUMN pembiayaan_awal INT(11) NULL, ADD COLUMN biaya_masuk INT(11) NULL, ADD COLUMN asal_pt VARCHAR(255) NULL, ADD COLUMN asal_prodi VARCHAR(255) NULL";

if ($conn->query($sql) === TRUE) {
    echo "Columns added successfully";
} else {
    echo "Error adding columns: " . $conn->error;
}
$conn->close();
