Advertisement
Guest User

db_conn.php

a guest
Aug 18th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <?php
  2.    error_reporting(E_ALL);
  3.    ini_set("display_errors", 1);
  4.  
  5. // Database credentials.
  6. $servername = "localhost";
  7. $username = "josh";
  8. $password = "*";
  9. $dbname = "estiweb_db";
  10.  
  11. // Attempt to connect to MySQL database
  12. $link = new mysqli($servername, $username, $password, $dbname);
  13.  
  14. // Check connection
  15. if($link === false){
  16.     die("ERROR: Could not connect. " . mysqli_connect_error());
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement