Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
113
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. $mysql_host = "mysql*.000webhost.com";
  3. $mysql_database = "a******_account";
  4. $mysql_user = "a******_admin";
  5. $mysql_password = "******";
  6.  
  7. // Create connection
  8. $con=mysqli_connect($mysql_host, $mysql_user, $mysql_password, $mysql_database);
  9.  
  10. // Check connection
  11. if (mysqli_connect_errno($con))
  12. {
  13. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  14. };
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement