Advertisement
lmohanarun

Dimitar - IPCNaplesConnectionCheck

Oct 15th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $servername: 68.178.253.53
  2. $username: g0722556095117@72.167.233.37
  3. $password: m_{O70FQ
  4.  
  5. try {
  6. $conn = new PDO("mysql:host=$servername;dbname=g0722556095117", $username, $password);
  7. // set the PDO error mode to exception
  8. $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  9. echo "<br/>Connected successfully <br/>";
  10. }catch(PDOException $e){
  11. echo "<br/>Connection failed: " . $e->getMessage();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement