<?php
// db_mysqli.php
// Centralized MySQLi connection for migrated modules using pedidos configuration constants.
date_default_timezone_set('America/Guatemala');
require_once __DIR__ . '/../../config/database.php';

/** @var mysqli $conn */
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);

if ($conn->connect_error) {
    die("Conexión fallida: " . $conn->connect_error);
}

$conn->set_charset("utf8");
?>
