Initial Commit
This commit is contained in:
commit
9ad6876181
5 changed files with 786 additions and 0 deletions
12
db/bootstrap.php
Normal file
12
db/bootstrap.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
$dbhost = "localhost";
|
||||
$dbname = "library";
|
||||
$dbuser = "root";
|
||||
$dbpw = "";
|
||||
|
||||
try{
|
||||
$pdo = new PDO("mysql:host=$dbhost; dbname=$dbname; charset=utf8", $dbuser, $dbpw);
|
||||
}catch(PDOException $e){
|
||||
die("Connection failed: " . $e->getMessage());
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue