-
Notifications
You must be signed in to change notification settings - Fork 0
/
db-settings.php
35 lines (28 loc) · 942 Bytes
/
db-settings.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
28
29
30
31
32
33
34
35
<?php
/**
* Created by PhpStorm.
* User: PraviinM
*/
//Development Database Information
$db_host = "localhost"; //Host address (most likely localhost)
$db_name = "chinook"; //Name of Database
$db_user = "root"; //Name of database user
$db_pass = "darthvader"; //Password for database user
$db_table_prefix = ""; // if the table prefix exists use this variable as a global
//following variable declaration is for next class :)
GLOBAL $errors;
GLOBAL $successes;
$errors = array();
$successes = array();
/* Create a new mysqli object with database connection parameters */
$mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name);
GLOBAL $mysqli;
/*if(mysqli_connect_errno()) {
//display the reason for mysql connection error.
echo "Connection Failed: " . mysqli_connect_errno();
exit();
} else {
echo "Connection Successful this connection is great";
}
?>
*/