Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('DB_DSN', 'mysql:host=localhost;dbname=serverside;charset=utf8');
- define('DB_USER', 'serveruser');
- define('DB_PASS', 'gorgonzola7!');
- try {
- $db = new PDO(DB_DSN, DB_USER, DB_PASS);
- } catch (PDOException $e) {
- echo 'Error: '.$e->getMessage();
- die(); // Force execution to stop on errors.
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement