mirror of
https://github.com/gabrielkheisa/tugas-pjpb.git
synced 2025-08-21 11:31:11 +00:00
first
This commit is contained in:
16
config.php
Normal file
16
config.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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());
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user