<?php
/* =========================
   Database Configuration
   ========================= */

$db_host = "localhost";
$db_user = "root";          // change if needed
$db_pass = "";              // change if needed
$db_name = "retail_shop";  // your database name

/* =========================
   Database Connection
   ========================= */

mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$conn = new mysqli($db_host, $db_user, $db_pass, $db_name);

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

/* =========================
   Charset (VERY IMPORTANT)
   ========================= */
$conn->set_charset("utf8mb4");
