mirror of
https://github.com/gabrielkheisa/tugas-pjpb.git
synced 2024-11-25 13:03:17 +07:00
16 lines
452 B
PHP
16 lines
452 B
PHP
|
<?php
|
||
|
/* Database credentials. Assuming you are running MySQL
|
||
|
server with default setting (user 'root' with no password) */
|
||
|
define('DB_SERVER', '');
|
||
|
define('DB_USERNAME', '');
|
||
|
define('DB_PASSWORD', '');
|
||
|
define('DB_NAME', '');
|
||
|
|
||
|
/* 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());
|
||
|
}
|
||
|
?>
|