title: Issues connecting to Microsoft SQL from PHP
body: <p>I am building a website using PHP on Somee Server(somee.com) and <strong>Microsoft SQL</strong>. Now I have a problem making connection between php and SQL. </p>
  
  <p>Here is my connection code: </p>
  
  <pre><code>&lt;?php
  $serverName = "mssql.somee.com"; //serverName\instanceName
  // Since UID and PWD are not specified in the $connectionInfo array,
  // The connection will be attempted using Windows Authentication.
  $connectionInfo = array( "Database"=&gt;"myDB","UID"=&gt;"myusername","PWD"=&gt;"mypassword");
  $conn = sqlsrv_connect( "mssql.somee.com", $connectionInfo);
  if( $conn ) {
  echo "Connection established.&lt;br /&gt;";
  }else{
  echo "Connection could not be established.&lt;br /&gt;";
  die( print_r( sqlsrv_errors(), true));} ?&gt;
  </code></pre>
  
  <p>And it returns me this error:</p>
  
  <blockquote>
    <p>Connection could not be established. Array ( [0] => Array ( [0] =>
    28000 [SQLSTATE] => 28000 [1] => 18456 [code] => 18456 [2] =>
    [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for
    user 'jason_SQLLogin'. [message] => [Microsoft][SQL Server Native
    Client 11.0][SQL Server]Login failed for user 'jason_SQLLogin'. ) [1]
    => Array ( [0] => 28000 [SQLSTATE] => 28000 [1] => 18456 [code] => 18456 [2] => [Microsoft][SQL Server Native Client 11.0][SQL
    Server]Login failed for user 'jason_SQLLogin'. [message] =>
    [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for
    user 'jason_SQLLogin'. ) )</p>
  </blockquote>
  
  <p>Anyone knows about it? Thanks very much. Really appreciate it. </p>