title: Error populating XML with PHP from SQLServer
body: <p>I have a database in SQL Server, and I want to populate the XML document from my database, using PHP. But when I open the populate.php file I have the error below...</p>
  
  <pre><code>Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\populate.php on line 6
  </code></pre>
  
  <p>My php file is like below:</p>
  
  <pre><code>&lt;?php
  
  $server = "USER-PC\SQLEXPRESS";
  $options = array("UID"=&gt;"", "PWD"=&gt;"", "Database"=&gt;"RESTORANTET");
  
  $conn = sqlsrv_connect($server, $options);
  
  $sql = "SELECT Emri_Pjates, Cmimi, Pershkrimi FROM dbo.MENU FOR XML PATH";
  
  $stmt = sqlsrv_query($conn, $sql);
  
  sqlsrv_fetch($stmt);
  $xml = sqlsrv_get_field($stmt, 0);
  
  ?&gt;
  </code></pre>
  
  <p>Please can you help me? Why sqlsrv_connect() is unidentified?  I am not sure about the username and password.. When I enter the SQL Server ,I enter with Windows Authentification, and I dont use any username or password...That is why I have leave UID amd PWD empty here..Am I wrong?</p>