Guest User

Untitled

a guest
Sep 9th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
  7. } catch(PDOException $e) {
  8.     print "Error: ".$e->getMessage()."<br/>";
  9.     die();
  10. }
Add Comment
Please, Sign In to add comment