<?php
$host = 'localhost';       // Change if needed
$dbname = 'bkdurcgh_desire'; // Your DB name
$username = 'bkdurcgh_desire';   // Your DB username
$password = 'bkdurcgh_desire';   // Your DB password

try {
    $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    echo json_encode([
        'status' => 'error',
        'message' => 'Database connection failed: ' . $e->getMessage()
    ]);
    exit;
}
?>
