Advertisement
Guest User

database.php

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