
<?php
$host = 'localhost'; // Your database host
$dbname = 'wptlgmnb_dbp'; // Your database name
$username = 'wptlgmnb_userp'; // Your database username
$password = 'Qliox4ITygj6Vh4V'; // Your database password

try {
    // Establish a connection to the database
    $conn = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
    // Set the PDO error mode to exception
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    // If the connection fails, display an error message
    echo "Connection failed: " . $e->getMessage();
    exit();
}
?>
