<?php
$host = 'localhost';
$username = 'madanico_vos';
$password = '2136]R?wIq23';
$database = 'madanico_office';

// Using object-oriented style to match your API file
$conn = new mysqli($host, $username, $password, $database);

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

// Set charset to ensure proper handling of special characters
$conn->set_charset("utf8mb4");
?>