<?php
// /includes/db_connect.php

$servername = "localhost";
$username = "u176134211_calligraph"; 
$password = "Ayushi@0337##";
$dbname = "u176134211_calligraph";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Set charset to utf8mb4 to handle special characters and emojis correctly
$conn->set_charset("utf8mb4");
?>