website/internal/mysql.php
2020-10-13 17:11:32 +02:00

8 lines
199 B
PHP

<?php
include "config.php";
$conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase);
// Check connection
if ($conn->connect_error) {
die("Connection to database failed");
}