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