Guest User

Untitled

a guest
Jun 14th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $servername = "localhost";
  2. $username = "username";
  3. $password = "password";
  4.  
  5. // Create connection
  6. $conn = mysqli_connect($servername, $username, $password);
  7.  
  8. // Check connection
  9. if (!$conn) {
  10. die("Connection failed: " . mysqli_connect_error());
  11. }
  12. echo "Connected successfully";
  13. ?>
Add Comment
Please, Sign In to add comment