initial commit
This commit is contained in:
10
inc/db.php
Executable file
10
inc/db.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include('inc/secure.php');
|
||||
|
||||
// Verbindung herstellen
|
||||
$conn = mysqli_connect($host, $user, $password, $dbname);
|
||||
|
||||
// Verbindung prüfen
|
||||
if (!$conn) {
|
||||
die("Verbindung zur Datenbank fehlgeschlagen: " . mysqli_connect_error());
|
||||
}
|
||||
Reference in New Issue
Block a user