Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dsn="mysql:host=localhost;dbname=restaurant";
- $db_username="root";
- $db_password="hscc";
- try {
- $db= new PDO($dsn, $db_username, $db_password);
- } catch (PDOException $e) {
- echo "<h1>There was an error connecting to the database.</h1><br/>";
- echo "<h2>Error: " . $e->getMessage() . "</h2>";
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement