i am being hosted by hammyhosting and the database is userinfo
and here is the script i use to make the connection:
<?
// Replace the variable values below
// with your specific database information.
$host = "localhost";
$user = "drago";
$pass = "password";
$db = "drago_userinfo";
// This part sets up a persistant connection to the
// database (so you don't need to reopen the connection
// elsewhere on the same page).
$ms = mysql_pconnect($
www.hammyhosting.com, $drago, $password);
if ( !$ms )
{
echo "Error connecting to database.\n";
}
// Then you need to make sure the database you want
// is selected.
mysql_select_db($userinfo);
?>
so the coomand is $ms = mysql_pconnect($host, $user, $pass);
but it says
Warning: mysql_pconnect(): Unknown MySQL Server Host 'hammyhostingcom' (1) in /home/drago/public_html/dbconfig.php on line 12
Error connecting to database.
please help