-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbconfig.php
More file actions
executable file
·36 lines (24 loc) · 854 Bytes
/
dbconfig.php
File metadata and controls
executable file
·36 lines (24 loc) · 854 Bytes
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
28
29
30
31
32
33
34
35
36
<?php
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
/* Attempt to connect to MySQL database */
$conn = mysqli_connect("localhost", "root", "", "admin");
// Check connection
if($conn === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
?>
<!--
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'admin');
/* Attempt to connect to MySQL database */
$conn = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
// Check connection
if($conn === false){
die("ERROR: Could not connect. " . mysqli_connect_error());
}
-->