On the UCI Spirit server for a club named "sample", a typical connect script would look something like this...
<? // CONNECT TO DATABASE SCRIPT
$host = "localhost";
$db = "sample";
$user = "sample";
$pass = "password";
$connection = mysql_connect ($host, $user, $pass) or die ("** Could not connect. " . mysql_error() );
echo ("Connected. ");
mysql_select_db ($db) or die ("** Could not select database. ");
mysql_close ($connection);
?>