<?php
// ========== DATABASE CONNECTION ==========

$host = "localhost";                     // Same rahne dein
$username = "webiplus_shadihall";        // <-- Apna banaya hua user (prefix ke saath)
$password = ")^A9p.ak8korFag*";        // <-- Us user ka password yahan paste karein
$database = "webiplus_shadihall";         // <-- Aapka database (already confirmed)

$conn = mysqli_connect($host, $username, $password, $database);

if (!$conn) {
    die("Database Connection Failed: " . mysqli_connect_error());
}

// Set charset for Urdu/special characters
mysqli_set_charset($conn, "utf8mb4");

// Start session
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}

// ========== BASE URL ==========
// Agar domain root par hai (yoursite.com/):           define('BASE_URL', '');
// Agar subfolder me hai (yoursite.com/shadihall/):    define('BASE_URL', '/shadihall');

define('BASE_URL', '/shadi');  // <-- Apne setup ke hisaab se change karein

// Live server par errors hide karein (security)
ini_set('display_errors', 0);
error_reporting(0);
?>
