The format of mysql_connect() is this ;
PHP Code:
mysql_connect('server', 'user', 'password')
You then use the mysql_select_db() statement to connect to your database. If the php is running on the same server as mysql then the server will be 'localhost'.
Edit, oh well, beaten by half a dozen .......