Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. $mysql_host = 'mysql:host=localhost;dbname=lofo';
  3. $mysql_user = "root";
  4. $mysql_password = "password";
  5.  
  6. try {
  7. $database = new PDO($mysql_host, "root","password");
  8. } catch (PDOException $e) {
  9. echo 'Connection failed: ' . $e->getMessage();
  10. exit();
  11. }
  12.  
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement