Files
email_reports/dbconfig.php
Frank John Begornia 659ad69995 Initial Commit
2019-11-04 17:12:11 +08:00

18 lines
410 B
PHP

<?php
$host = "localhost";
$username = "root";
$password = "";
$db = "custom_design";
try{
// database connection
$conn = new PDO("mysql:host=$host;dbname=$db",$username,$password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $pe)
{
die('Connection error, because: ' .$pe->getMessage());
}
$baseURL = 'http://'.$_SERVER['HTTP_HOST'] . '/bulacanlibrary/';