Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "";
- $username = "";
- $password = "";
- $dbname = "";
- try {
- $DBcon = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);
- $DBcon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- } catch(PDOException $error) {
- die($error->getMessage());
- }
- ?>
Add Comment
Please, Sign In to add comment