Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $database_name = 'dbname';
- $database_host = 'localhost';
- $database_user = 'username';
- $database_pass = 'password';
- try
- {
- $database = new PDO("mysql:host=$database_host;dbname=$database_name", $database_user, $database_pass);
- }
- catch(PDOException $e)
- {
- echo $e->getMessage();
- }
- ?>
Add Comment
Please, Sign In to add comment