title: PHP sqlsrv query to database
body: <p>I am migrated from MySQL to MS SQL Server, and trying to fetch all data from the routines table. I am connected but unsure how to fetch data with sqlsrv. This is how far I have came:</p>
  
  <pre><code>$conn_array = array (
      "UID" =&gt; "sa",
      "PWD" =&gt; "root",
      "Database" =&gt; "nih_bw",
  );
  $conn = sqlsrv_connect('BILAL', $conn_array);
  if ($conn){
      echo "connected";
      $result = sqlsrv_query($db-&gt;db_conn,"SELECT * FROM routines");
  }else{
      die(print_r(sqlsrv_errors(), true));
  }
  sqlsrv_close($conn);
  ?&gt;
  </code></pre>