Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $conn_error = 'Could not connect.'; //If database can't connect, this error wil show up
  3.  
  4. $mysql_host = 'localhost';
  5. $mysql_user = 'root';
  6. $mysql_pass = 'root';
  7. $mysql_db = '';
  8. $db = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_db);
  9. if (mysqli_connect_errno()){
  10. die($conn_error);
  11. }
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement