initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/* Database credentials. Assuming you are running MySQL
|
||||
server with default setting (user 'root' with no password) */
|
||||
define('DB_SERVER', '192.168.1.91');
|
||||
define('DB_USERNAME', 'anjuma');
|
||||
define('DB_PASSWORD', '+HhuL6kq5iC7t');
|
||||
define('DB_NAME', 'anjuma-dashboard');
|
||||
|
||||
/* Attempt to connect to MySQL database */
|
||||
try{
|
||||
$pdo = new PDO("mysql:host=" . DB_SERVER . ";dbname=" . DB_NAME, DB_USERNAME, DB_PASSWORD);
|
||||
// Set the PDO error mode to exception
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch(PDOException $e){
|
||||
die("ERROR: Could not connect. " . $e->getMessage());
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user