Guest User

Untitled

a guest
May 10th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. $dsn = 'mysql:host=localhost;dbname=hotel_database';
  3. $username = 'root';
  4. $password = '';
  5.  
  6. try {
  7. $db = new PDO($dsn, $username, $password);
  8. } catch (PDOException $e) {
  9. $error_message = $e->getMessage();
  10. include('../model/error_db.php');
  11. exit();
  12. }
  13. ?>
Add Comment
Please, Sign In to add comment