Advertisement
Guest User

Untitled

a guest
Dec 1st, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <html>
  2. <body>
  3.  
  4.  
  5. <?php
  6.  
  7. $servername = "localhost";
  8. $username = "root";
  9. $password = "fionda"
  10.  
  11.  
  12. // Make a connection
  13.  
  14. $con = new mysqli($servername,$username,$password);
  15.  
  16. // Check connection
  17.  
  18. if ($con->connection_error) {
  19.  
  20. die("Connection Failed : " . con->connection_error) ;
  21.  
  22. }
  23. echo "Connection Succes";
  24.  
  25.  
  26. ?>
  27.  
  28.  
  29.  
  30.  
  31.  
  32. </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement