-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
27 lines (23 loc) · 795 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
This file contains database configuration assuming you are running mysql using user "root" and password ""
*/
define('DB_SERVER', 'sql309.epizy.com');
define('DB_USERNAME', 'epiz_30821912');
define('DB_PASSWORD', 'chARdMV83ANS');
define('DB_NAME', 'epiz_30821912_jobs');
$DATABASE_HOST = 'sql309.epizy.com';
$DATABASE_USER = 'epiz_30821912';
$DATABASE_PASS = 'chARdMV83ANS';
$DATABASE_NAME = 'epiz_30821912_jobs';
$con = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);
if (mysqli_connect_errno()) {
exit('Failed to connect to MySQL: ' . mysqli_connect_error());
}
// Try connecting to the Database
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
//Check the connection
if($conn == false){
dir('Error: Cannot connect');
}
?>