Initial Commit
This commit is contained in:
18
dbconfig.php
Normal file
18
dbconfig.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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/';
|
||||
Reference in New Issue
Block a user