title: Connecting to a MSSQL database with PHP Connection Login failed for user
body: <p>I am at the start of developing a simple script that will log into a MSSQL database with a PHP script. I have got a connection between both servers but keep getting this error:</p>
  
  <p>Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user '$username'. (severity 14) in /directory/ on line no</p>
  
  <p>the code I am using to connect is simply :</p>
  
  <p>$var = mssql_connect('ip:port','$username','$password');</p>
  
  <p>Any help would be brilliant.</p>
  
  <p>Thanks</p>