Advertisement
Guest User

Untitled

a guest
Sep 30th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $conn_error = 'Could not connect.'; //If database can't connect, this error wil show up
  4.  
  5. $mysql_host = '31.186.171.12';
  6. $mysql_user = 'glennlignel_user';
  7. $mysql_pass = 'Win$4ever';
  8. $mysql_db = 'glennlignel_world-exploration';
  9. //$mysql_host = 'localhost';
  10. //$mysql_user = 'root';
  11. //$mysql_pass = '';
  12. //$mysql_db = 'calpeplaya';
  13. $db = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_db);
  14. if (mysqli_connect_errno()){
  15. die($conn_error);
  16. } else{
  17. echo "conncted";
  18. }
  19.  
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement