updating errors
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$servername = "cyberhex-db";
|
$DB_SERVERNAME = "cyberhex-db";
|
||||||
$username = "root";
|
$DB_USERNAME = "root";
|
||||||
$password = "1234";
|
$DB_PASSWORD = "1234";
|
||||||
$database = "cyberhex_db";
|
$DB_DATABASE = "cyberhex_db";
|
||||||
?>
|
?>
|
||||||
@@ -26,7 +26,7 @@ $success=1;
|
|||||||
include "../config.php";
|
include "../config.php";
|
||||||
|
|
||||||
// Create connection
|
// Create connection
|
||||||
$conn = new mysqli($servername, $username, $password);
|
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD);
|
||||||
|
|
||||||
// Check connection
|
// Check connection
|
||||||
if ($conn->connect_error) {
|
if ($conn->connect_error) {
|
||||||
@@ -46,7 +46,7 @@ if ($conn->query($sql) === TRUE) {
|
|||||||
$conn->close();
|
$conn->close();
|
||||||
|
|
||||||
// Connect to the new database
|
// Connect to the new database
|
||||||
$conn = new mysqli($servername, $username, $password, $database);
|
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD);
|
||||||
|
|
||||||
// Check connection
|
// Check connection
|
||||||
if ($conn->connect_error) {
|
if ($conn->connect_error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user