diff --git a/admin/db_management/conn_check.php b/admin/db_management/conn_check.php index d88ea0a..8db6c92 100644 --- a/admin/db_management/conn_check.php +++ b/admin/db_management/conn_check.php @@ -17,7 +17,7 @@ include("../dev_db_config.php"); // Include credentials try { // Try opening the SQL database connection - $conn = new PDO("mysql:host=$servername;dbname=$dbName", $username, $password); + $conn = new PDO("mysql:host=$servername;dbname=$dbName", $dbUsername, $dbPassword); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "

Database connection successful!

"; diff --git a/admin/index.php b/admin/index.php index 5dc4744..8ba2a53 100644 --- a/admin/index.php +++ b/admin/index.php @@ -103,11 +103,6 @@ session_start(); echo "ADMIN PANEL"; } ?> - MY ACCOUNT"; - } - ?> HOME