18 lines
419 B
PHP
18 lines
419 B
PHP
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
$host_name = 'localhost';
|
|
$database = 'rezepte';
|
|
$user_name = 'root';
|
|
$password = '';
|
|
|
|
$link = new mysqli($host_name, $user_name, $password, $database);
|
|
|
|
if ($link->connect_error) {
|
|
die('<p>Verbindung zum MySQL Server fehlgeschlagen: '. $link->connect_error .'</p>');
|
|
}
|
|
?>
|