config
This commit is contained in:
1 parent
53a026dec0
commit
9848d664b3
1 file changed
+18
+18
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
/* Database credentials. Assuming you are running MySQL
|
||||||
|
server with default setting (user 'root' with no password) */
|
||||||
|
define('DB_SERVER', 'db3.rack1.everdc.de');
|
||||||
|
define('DB_USERNAME', 'bruno');
|
||||||
|
define('DB_PASSWORD', 'bruno-zehn');
|
||||||
|
define('DB_NAME', 'phptest');
|
||||||
|
|
||||||
|
require_once("./local-config.php");
|
||||||
|
|
||||||
|
/* Attempt to connect to MySQL database */
|
||||||
|
$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
|
||||||
|
|
||||||
|
// Check connection
|
||||||
|
if($link === false){
|
||||||
|
die("ERROR: Could not connect. " . mysqli_connect_error());
|
||||||
|
}
|
||||||
|
?>
|
||||||
Reference in new issue
Block a user