PHP Code:
<?php
$host = "localhost"; //Don't change
$user = "mysql_username"; // mysql username
$pass = "mysql_pass"; // mysql password
$name = "mysql_db_name"; //mysql database name
$connection = mysql_connect($host, $user, $pass)
or die(mysql_error());
mysql_select_db($name, $connection)
or die(mysql_error());
mysql_close($connection);
?>