Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $hostname = "localhost";
  2. $username = "";
  3. $password = "";
  4. $database = "";
  5.  
  6. // Create connection
  7. $conn = new mysqli($hostname, $username, $password, $database);
  8.  
  9. // Check connection
  10. if ($conn->connect_error) {
  11. die("Connection failed: " . $conn->connect_error);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement