<?php

$mysqli = new mysqli("localhost", "root", "", "constra_db");

if ($mysqli->connect_errno) {
    echo "Failed to connect to MySQL: " . $mysqli->connect_error;
    exit();
}

$sql = "ALTER TABLE settings ADD COLUMN site_address TEXT AFTER contact_phone";

if ($mysqli->query($sql)) {
    echo "Address column added successfully.";
} else {
    echo "Error adding column: " . $mysqli->error;
}

$mysqli->close();
?>
