<?php
// config.php

// Database credentials
$host     = "localhost";   // or your server host
$username = "root";        // your DB username
$password = "";            // your DB password
$dbname   = "real_estate_db";

// Create connection
$conn = new mysqli($host, $username, $password, $dbname);

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

// Optional: set charset to utf8mb4 for better compatibility
$conn->set_charset("utf8mb4");
?>
