website/internal/mysql.php

12 lines
288 B
PHP
Raw Normal View History

2020-10-13 17:11:32 +02:00
<?php
include "config.php";
$conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase);
// Check connection
if ($conn->connect_error) {
2020-12-20 01:02:00 +01:00
include "500.php";
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
die(getError500());
2020-10-13 17:11:32 +02:00
}