In trying to connect to my server database, I was told to use the following syntax:
$cn = mysql_connect(www.yourdomain.com, username, password);
I supplied all of those parameters correctly and got this error message:
Warning: MySQL Connection Failed: Access denied for user: 'blahblah@blah.blah.com' (Using password: YES) in /usr/local/plesk/apache/vhosts/blahblah.com/docs/connect.php3 on line 6
Couldn't connect.
I was then told to substitute the name of the database (xxx) in place of the domain name.
I did so and then received this error message:
Warning: MySQL Connection Failed: Unknown MySQL Server Host 'xxx' (2) in /usr/local/plesk/apache/vhosts/xxx.com/docs/connect.php3 on line 8
Couldn't connect.
Anybody know what is going on here?