Advertisement
Guest User

Untitled

a guest
Apr 16th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. $hostname = "ec2-54-191-119-142.us-west-2.compute.amazonaws.com:3306"; //database host server
  4. $database = "fyp_data"; //database name
  5. $username = "root"; //database user
  6. $password = "*********"; //password
  7.  
  8. $con=mysql_connect($hostname,$username,$password);
  9. if(! $con)
  10. {
  11. die('Connection Failed'.mysql_error());
  12. }
  13. else
  14. echo "hurray!";
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement