<?php
// db.php
// This file establishes the connection to your MySQL database.

// --- Database Credentials --- 
// Replace with your actual database details.
define('DB_SERVER', '82.25.121.95');
define('DB_USERNAME', 'u109674398_ucf');
define('DB_PASSWORD', 'Raveendra@2025');
define('DB_NAME', 'u109674398_ucf');

// --- Create Connection ---
$conn = new mysqli(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);

// --- Check Connection ---
if ($conn->connect_error) {
    // If connection fails, stop the script and show an error.
    die("Connection failed: " . $conn->connect_error);
}

// Set character set to utf8mb4 for full Unicode support
$conn->set_charset("utf8mb4");

?>
