title: INSERT INTO sqlsrv_query statement not working
body: <p>When working with the sqlsrv_query command I can request data from the MSSQL server.
  This works
  But!</p>
  
  <p>When I want to add data it returns the error [error:array].</p>
  
  <p>The code I use for this is:</p>
  
  <pre><code>$tsql= "INSERT INTO dbo.VERLOF_events (id,
                  username,
                  soort,
                  afdeling,
                  description,
                  evdate,
                  trdate) 
                  VALUES
                  (?, ?, ?, ?, ?, ?, ?)";
                  $var = array('', $username, $soort, $afdeling,     $description, $evdate, $trdate);
                  if (!sqlsrv_query($conn, $tsql, $var))
                       {
                  die('Error: ' . sqlsrv_errors());
                       }
                  echo "1 record added"; 
  </code></pre>
  
  <p>The array values are set in the POST statement.</p>
  
  <pre><code>$afdeling = $row['Afdeling'];
  $submit = @$_POST['submit'];
  $description = @$_POST["description"];
  $evdate = @$_POST["evdate"];
  $trdate = @$_POST["trdate"];
  $username = @$_SESSION['username'];
  $soort = @$_POST['Dagen'];
  </code></pre>
  
  <p>Why does it return the array error?
  I looked it up but could not find the problem returning the error.</p>
  
  <p>Any help is appreciated!</p>