Dateien nach "includes" hochladen
This commit is contained in:
13
includes/database.php
Normal file
13
includes/database.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$config = include '../config/config.php';
|
||||
$servername = $config['servername'];
|
||||
$username = $config['username'];
|
||||
$password = $config['password'];
|
||||
$database = $config['database'];
|
||||
|
||||
$conn = new mysqli($servername, $username, $password, $database);
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user