You can’t access your database via webFTP, or any FTP program for that matter.
You said you could see it in a browser - and the only way you can do that is via the phpMyAdmin interface that is presented if you type the hostname into a browser (and answer the user/pass questions).
did you type in:
…or whatever the hostname was you assigned the database to when you created it?
If so, and if you can get access to your database that way, then you have most likely something improperly set in your applications connection settings (variables) that is generating the error (somehow sees it differently than when you put in in a browser). I’m assuming that you are not putting any “http://” in front of the hostname in those setting, correct?
*I can’t tell what you are doing as you have obfuscated the error message and not provided the code section that has your settings, or the name of your host - I’m not nearly a good enough mind-reader to sort that out.
Without knowing the details of your database/host, or seeing how you have entered these settings in whatever part of whatever program you are running, I have no Idea how to help you further.
You might consider getting your friend who gave you whatever code this is to help you get it installed - we simply don’t know enough about what you are trying to run, of how the program is configured, to be able to “guess” what you may be doing wrong.
[color=#CC0000]Note:[/color] The current DH network/DNS problems may be part of the problem you are having. As I pointed out earlier, those error messages can mean your MySQL server is unreachable, even if your settings are all correct.
If you cannot connect to your database via a browser as described above, contact support; if you can, then you are either going to have to figure it out for yourself, or get help from someone you can trust to show the code/settings/configuration details to.
Unfortunately this type of back and forth discussion does not seem to be helping you.