Advertisement
Guest User

Untitled

a guest
Apr 20th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $host = "localhost";
  5. $username = "root";
  6. $password = "";
  7. $db_name = "quiz";
  8.  
  9. // Create connection
  10.  
  11. $conn = mysqli_connect($host, $username, $password, $db_name);
  12.  
  13. if($conn)
  14. {
  15.  
  16. }
  17.  
  18. // Check connection
  19.  
  20. else if (!$conn)
  21. {
  22. mysqli_connect_error();
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement