corrected admin.php
This commit is contained in:
parent
d8fdf5e3c2
commit
de8dbd6b28
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
require 'config.php';
|
||||
|
||||
try {
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $dbuser, $dbpass);
|
||||
$pdo = new PDO("mysql:host=$host;dbname=$db;charset=utf8", $user, $pass);
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch (PDOException $e) {
|
||||
die("Datenbankverbindung fehlgeschlagen: " . $e->getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue