<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

date_default_timezone_set('Asia/Jakarta');

$host = 'ftp.mediawana.com';                        // Ganti jika host MySQL berbeda
$db   = 'medp2337_pos_enakinchiken';           // ← Sudah diganti
$user = 'medp2337';
$pass = 'vXmfhpsK6BFJ33';                    // Ganti jika ada password MySQL

try {
    $pdo = new PDO("mysql:host=$host;dbname=$db;charset=utf8mb4", $user, $pass);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
    die("❌ Koneksi Database Gagal: " . $e->getMessage());
}
?>