Advertisement
Guest User

db.php

a guest
Oct 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost";
  4. $dbusername = "root";
  5. $dbPassword = "";
  6. $dbName = "test"
  7.  
  8. $conn = mysqli_connect($servername, $dbusername, $dbPassword, $dbName);
  9.  
  10. if (!$conn) {
  11. die("Connection Failed: " .mysqli_connect_error());
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement