Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "USERHERE" (not typing my proper user);
  4. $password = "PASSHERE" (not typing my proper password);
  5.  
  6.  
  7. // Create connection
  8. $conn = new mysqli($servername, $username, $password);
  9.  
  10. // Check connection
  11. if ($conn->connect_error) {
  12. die("Connection failed: " . $conn->connect_error);
  13. }
  14. echo "Connected successfully";
  15.  
  16. mysqli_close($conn);
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement