18 lines
410 B
PHP
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/'; |