Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "pubg_sverige_se_db";
- $username = "pubg_sverige_se_db";
- $password = "c47-!9Z-$zU-yA#";
- try {
- $dbh = new PDO("mysql:host=$servername;dbname=db1", $username, $password);
- // set the PDO error mode to exception
- $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e)
- {
- echo "Connection failed: " . $e->getMessage();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement