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