Setzen von db Verbindung
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$dbuser = 'root';
|
||||||
|
$dbpw = 'Feuerwehr1!';
|
||||||
|
$dbhost = 'localhost';
|
||||||
|
$dbname = 'sozialesnetzwerk';
|
||||||
|
|
||||||
|
try {
|
||||||
|
$pdo = new PDO ("mysql:dbname=$dbname;host=$dbhost;charset=utf8", $dbuser, $dbpw);
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
die ($e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user