Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. define('DB_DSN', 'mysql:host=localhost;dbname=serverside;charset=utf8');
  3. define('DB_USER', 'serveruser');
  4. define('DB_PASS', 'gorgonzola7!');
  5.  
  6. try {
  7. $db = new PDO(DB_DSN, DB_USER, DB_PASS);
  8. } catch (PDOException $e) {
  9. echo 'Error: '.$e->getMessage();
  10. die(); // Force execution to stop on errors.
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement