I hope this is what you're asking for:
PHP Code:
/*Connect to MSSQL Server */
$_MSSQL['Server'] = "VPS-Name\SQLEXPRESS"; //Your VPS Name
$_MSSQL['User'] = "sa"; //Your User Name for MSSQL Connection
$_MSSQL['Password'] = "Password"; //Your Password
$_MSSQL['Database'] = "Database Name"; //Database name (GunzDB)
$connect = mssql_connect($_MSSQL['Server'],$_MSSQL['User'],$_MSSQL['Password']) or die ("Connection to the database has failed");
mssql_select_db($_MSSQL['Database'],$connect) or die ("Couldn't find the database");