diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-05-08 17:30:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 17:30:08 -0600 |
commit | 87b1dfd1f77b08915ee5e905da45e316ba2c0e7d (patch) | |
tree | f6c0f8d09454b6e887df0f66ca37c1ce9efb30d0 /includes/db_inc.php | |
parent | 0b045d57b2164b5ce003955d79627ae506a153eb (diff) | |
parent | a09d9f377f5c055e42e5f21b5cdea64c2e2ca896 (diff) |
Merge pull request #14 from cflip/refactor
Huge refactor
Diffstat (limited to 'includes/db_inc.php')
-rw-r--r-- | includes/db_inc.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/db_inc.php b/includes/db_inc.php deleted file mode 100644 index b7c361d..0000000 --- a/includes/db_inc.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php -$cfg_ini = parse_ini_file('config.ini', true); -$dbcfg = $cfg_ini['mysql_credentials']; - -$db_server = $dbcfg['server']; -$db_user = $dbcfg['user']; -$db_pass = $dbcfg['password']; -$db_database = $dbcfg['database']; - -$dbc = mysqli_connect($db_server, $db_user, $db_pass, $db_database); - -if (!$dbc) { - die("Database connection error: " . mysqli_connect_error()); -} |