<?php
$host = "localhost";
$username = "tnyowsjv_lamile";
$password = "2wTFC65&*9masqx6%@r4";
$database = "tnyowsjv_crudalamile";

// Connect to MySQL
$conn = new mysqli($host, $username, $password, $database);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// SQL to modify the column
$sql = "ALTER TABLE transactions MODIFY amount DECIMAL(11,2) NOT NULL";

if ($conn->query($sql) === TRUE) {
    echo "Column 'amount' modified to DECIMAL(11,2) NOT NULL successfully.";
} else {
    echo "Error modifying column: " . $conn->error;
}

$conn->close();
?>
