changed the fail notification to react to mysql mistakes
This commit is contained in:
parent
364e6a4c7d
commit
9d4465b4ae
4
db.php
4
db.php
|
@ -8,7 +8,7 @@ $db_port = '3306';
|
|||
|
||||
$con = mysqli_connect("$db_server","$db_user","$db_password","$db","$db_port");
|
||||
// Check connection
|
||||
if (mysqli_connect_errno()) {
|
||||
echo "Failed to connect to MySQL: " . mysqli_connect_error();
|
||||
if (!$con) {
|
||||
die("Failed to connect to MySQL: ".mysqli_connect_error());
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue