<?php 
// Error reporting (production me off kar dena)
error_reporting(0);

// DB credentials
$hostname = "localhost";  $username = "thevanid_00";  $password ="thevanid_00";  $database = "thevanid_00";

// Create connection
$conn = mysqli_connect($hostname, $username, $password, $database);

// Check connection (secure way)
if (!$conn) {
    error_log("Database Connection Failed: " . mysqli_connect_error());
    die("❌ Database connection error. Please try again later.");
}

// Set charset (important for security)
mysqli_set_charset($conn, "utf8mb4");

// Optional: success message remove kar do production me
// echo "Database Connected Successfully";
?>