improved database initialization
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
if(!isset($_SESSION)) session_start();
|
||||
|
||||
|
||||
include('/home/giers/Web/db_settings.php'); //declares $db_server, $db_password and $db_password
|
||||
$db_name = 'hori';
|
||||
include __DIR__ . "/../../db_settings.php"; //declares $db_name, $db_server, $db_password and $db_password
|
||||
|
||||
$db = mysqli_connect($db_server, $db_user, $db_password, $db_name);
|
||||
mysqli_set_charset($db, "utf8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user