Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "username";
- $password = "password";
- $hostname = "hostname";
- $dbname = "dbname";
- //connection to the database
- $dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
- echo "Connected to MySQL using username - $username, password - $password, host - $hostname<br>";
- $selected = mysql_select_db("$dbname",$dbhandle) or die("Unable to connect to MySQL DB - check the database name and try again.");
- ?>
Add Comment
Please, Sign In to add comment