SHOW:
|
|
- or go back to the newest paste.
1 | $host = "localhost"; | |
2 | $user = "root"; | |
3 | $pass = "DIN_LÖSSENORD_TILL_PHPMYADMIN"; | |
4 | $databas = "DIN_DATABAS"; | |
5 | try { | |
6 | - | $dbh = new PDO('mysql:host='.$host.';dbname='.$databas.',$user,$pass); |
6 | + | $dbh = new PDO('mysql:host='.$host.';dbname='.$databas,$user,$pass); |
7 | } catch(PDOException $e) { | |
8 | print "Error: ".$e->getMessage()."<br/>"; | |
9 | die(); | |
10 | } |