Hi, You are doing it wrong. The correct syntax of mysql_pconnect is:
$connection = mysql_pconnect($server, $username, $password, $client_flags);
So, if you have the hostname, you must use it instead of using ServerName. So, all you have to do is use this piece of code:
$hostname = "99.99.999.999";
$password = "aaaaahh";
$username = "xxx xxx";
$server = "MySQL 1";
$connection = mysql_pconnect($hostname, $username, $password);
if (!$connection)
{
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($connection);
See, I have not used $server anywhere. Not needed. Give it a try. Enjoy.
Procrastination and Improvisation are my two swords to fight life. My Portfolio Website