Also I'm not sure, but I think the problems are all because of the first warning?
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'name'@'localhost' (using password: NO) in /usr/......./www/lib/opencon.php on line 5
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/......../www/lib/opencon.php on line 7
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/........../www/lib/class-functions.php on line 1473
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /usr/........../www/lib/class-functions.php on line 1478
PS: I had to remove full locations etc for security reasons - and if its something simple and I'm being dense, its 9am on tuesday morning!
EDIT: after some browsing, learnt it could be my username is incorrect, but its the same code as before nothing has changed?