Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysql_host = 'mysql:host=localhost;dbname=lofo';
- $mysql_user = "root";
- $mysql_password = "password";
- try {
- $database = new PDO($mysql_host, "root","password");
- } catch (PDOException $e) {
- echo 'Connection failed: ' . $e->getMessage();
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement