Mini Kabibi Habibi

Current Path : C:/xampp/htdocs/Website/includes/
Upload File :
Current File : C:/xampp/htdocs/Website/includes/dbh.inc.php

<?php

$host = 'localhost';
$dbname = myfirstdatabase;
$dbusername = "root";
$dbpassword = "";

try {
	$pdo = new PDO("mysql:host=$host;dbname=$dbname", $dbusername, $dbpassword);
	$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
	die "Connection failed: " . $e->getMessage();
}