title: PHP prepared statments with select query
body: <p>I just started learning PHP today and am trying to write a few queries using prepared statements. so far I have this:</p>
  
  <pre><code>$query = "select * from users where 1 = ?";
  $result = sqlsrv_query($connection,$query,array(1));
  if($result === false){
  echo "error";
  }
  
  while($row =  sqlsrv_fetch_array($result,SQLSRV_FETCH_ASSOC)){
  print_r($row);
  }
  </code></pre>
  
  <p>It produces the desired result (simply printing everything returned).
  I am struggling on making it a prepared query, to avoid SQL injection </p>