Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hostname = "ec2-54-191-119-142.us-west-2.compute.amazonaws.com:3306"; //database host server
- $database = "fyp_data"; //database name
- $username = "root"; //database user
- $password = "*********"; //password
- $con=mysql_connect($hostname,$username,$password);
- if(! $con)
- {
- die('Connection Failed'.mysql_error());
- }
- else
- echo "hurray!";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement