Guest User

Untitled

a guest
Jun 6th, 2017
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. $servername = "localhost";
  6. $username = "root";
  7. $password = "";
  8. $dbname = "waqas"; //case sensitive
  9.  
  10.  
  11.  
  12.  
  13.  
  14. // Create connection
  15. $conn = new mysqli($servername, $username, $password, $dbname);
  16. // Check connection
  17.  
  18. if ($conn->connect_error)
  19. {
  20. die("Connection failed: " . $conn->connect_error);
  21. }
  22.  
  23.  
  24. ?>
Add Comment
Please, Sign In to add comment