mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-27 15:40:00 +01:00
15 lines
368 B
PHP
15 lines
368 B
PHP
<?php
|
|
include $_SESSION["docroot"].'/config/config.php';
|
|
$mysqli = new mysqli(
|
|
$host = $CONFIG['host'],
|
|
$username = $CONFIG['username'],
|
|
$passwd = $CONFIG['passwd'],
|
|
$database = $CONFIG['database']
|
|
);
|
|
$mysqli->set_charset("utf8mb4");
|
|
if (!is_null($mysqli->connect_error))
|
|
{
|
|
header("Location: /error/DBConnFailed");
|
|
exit;
|
|
}
|
|
?>
|