-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
60 lines (38 loc) · 1.3 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/* DATABASE CONFIGURATION FILE */
$db_host = "localhost"; // DATABASE HOST
$db_name = "nyxwolves"; // DATABASE NAME
$db_user = "root"; // DATABASE USERNAME
$db_pass = ""; // DATABASE USER'S PASSWORD
$db_users_table = "users"; // DATABASE USERS TABLE NAME
$db_admin_table = "admin"; // DATABASE ADMIN TABLE NAME
$db_posts_table = "posts"; // DATABASE NOTICE TABLE NAME
// Create Connection
$conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
// Check Connection
if (!$conn) {
die("<br><br>MySqli Connect Error : " . mysqli_connect_error());
}
/*
else {
echo "<br><br> DATABASE CONNECTION SUCCESSFULL!";
}
*/
/* ERROR REPORTING SECTION STARTS HERE */
// Turn off all error reporting
//error_reporting(0);
// Report simple running errors
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// Report all errors except E_NOTICE
//error_reporting(E_ALL & ~E_NOTICE);
// Report all PHP errors (see changelog)
//error_reporting(E_ALL);
// Report all PHP errors
//error_reporting(-1);
// Same as error_reporting(E_ALL);
//ini_set('error_reporting', E_ALL);
/* ERROR REPORTING SECTION ENDS HERE */
?>