Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getConnection(){
- $username = 'xxxxxxxxxxxxxxxx7';
- $password = 'xxxxxxxxxxxxxx';
- $dbname = 'xxxxxxxxxxxxxxxx';
- $db = new PDO( "mysql:host=localhost;dbname=$xxxxxxxxxxxxxx", $username, $password );
- $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
- return $db;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement