I would get an FTP client like WS_FTP or CuteFTP and not do the dreamweaver thing. Dreamweaver is good for codig and the such, but I have had bad experiances with the FTP portion of the software. You should have this file and call it dbinfo.inc.php
<?
mysql_connect('localhost', 'username', 'password', 'dbname');
?>
Then on all the pages you need to connect to the DB for type this in above the line you run your queries
<?
include('dbinfo.inc.php');
?>
Hope that helps