To connect from a PHP script, just put this in your file:
<?php
mysql_connect("localhost", "DB_USER_NAME", "DB_PASSWORD");
mysql_select_db("DB_NAME");
?>
Where:
DB_USER_NAME is your MySQL Database user name.
DB_PASSWORD is your MySQL Database Password.
DB_NAME is your MySQL Database Name.
You can find these information by loging into your members area at:
http://www.netfreehost.com/login.php