I keep getting the following warnings when i try and connect to my vbulletin database.
Warning: mysql_connect(): Access denied for user 'nobody'@'localhost' (using password: YES) in /testing.php on line 7
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /testing.php on line 8
Warning: mysql_query(): Access denied for user 'nobody'@'localhost' (using password: NO) in /testing.php on line 14
Warning: mysql_query(): A link to the server could not be established in /testing.php on line 14
Access denied for user 'nobody'@'localhost' (using password: NO)
I'm using the following code to connect to the database
$strServer="localhost"; // Server IP Address 'or' Name
$strDatabase="xxx"; // Database Name
$strUser="xxx"; // User ID
$strPwd="xxx"; // Password
$strDB=mysql_connect("$strServer","$struser","$str Pwd");
$database=mysql_select_db($strDatabase,$strDB);
and i've made sure the correct details have been entered. I'm connecting to the database from a non vbulletin page, it's custom. Any ideas? I've tried a few different connection techniques but all result in the same warnings.
Thanks in advance
KJ
PS. i've searched the forums and see that this is a common issue and is usually resolved by correcting account details but this is not the case here

Everything looks right to me.