Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $servername: 68.178.253.53
- $username: g0722556095117@72.167.233.37
- $password: m_{O70FQ
- try {
- $conn = new PDO("mysql:host=$servername;dbname=g0722556095117", $username, $password);
- // set the PDO error mode to exception
- $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- echo "<br/>Connected successfully <br/>";
- }catch(PDOException $e){
- echo "<br/>Connection failed: " . $e->getMessage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement