website/public/API/lib/mysql.php
2021-04-12 20:33:24 +02:00

10 lines
266 B
PHP

<?php
$conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase);
// Check connection
if ($conn->connect_error) {
include "500.php";
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
die(getError500());
}