<?php
$host   = "localhost";
$dbuser = "innlol_xen";
$pswd   = "innlol_xen";
$dbname = "innlol_xen";

// Database connect
$conn = mysqli_connect($host, $dbuser, $pswd, $dbname);

if (!$conn) {
    header("refresh:0;url=error.php");
    exit();
}

// --- Hindi UTF-8 Support ---
mysqli_set_charset($conn, "utf8mb4");

// Extra safe (optional)
mysqli_query($conn, "SET NAMES utf8mb4");
mysqli_query($conn, "SET CHARACTER SET utf8mb4");
mysqli_query($conn, "SET collation_connection = 'utf8mb4_unicode_ci'");

// Page output UTF-8
header("Content-Type: text/html; charset=utf-8");

?>
