You ARE changing those values to the proper ones, right? For example, to use the username "daniweb" and password "isthecurrentsite" and connect to the server
www.example.com, your connection string would be:
mssql_connect('localhost', 'daniweb', 'isthecurrentsite');