Here is what I had...

<?php

$dbh = mysql_connect("localhost","ubbserver","pw");
mysql_select_db("ubbthreads",$dbh);

?>

Except pw was the password for the account.
ubbserver is the user name for the account.
ubbthreads is the database.