Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "Belfastfood215";
  5. $database = "mydb";
  6.  
  7. // Create connection
  8. $conn = mysqli_connect($servername, $username, $password, $database);
  9.  
  10. // Check connection
  11. if (!$conn) {
  12.    
  13.     die("Connection failed: " . mysqli_connect_error());
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement