Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dsn = 'mysql:host=localhost;dbname=kungfu_panda_shop';
- $username = 'web_user';
- $password = 'shifu88';
- try {
- $db = new PDO($dsn, $username, $password);
- //echo "Successful in connecting to database<br>\n"; <!--program stops here if you dont comment this out -->
- } catch (PDOException $e) {
- $error_message = $e->getMessage();
- //echo $error_message;
- include('eg008b_database_error.php');
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement