<?php
$host = "localhost";
$user = "kimaravtc_admin";
$pass = "Kimaravtc@2025";
$db   = "Kimaravtc_db";

try {
    // PDO is active on your server natively and doesn't require extra extensions
    $conn = new PDO("mysql:host=$host;dbname=$db;charset=utf8mb4", $user, $pass);
    // Tell PHP to throw exceptions if a query breaks
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    die("Database connection failed: " . $e->getMessage());
}