title: How To Convert the sql result set data into an XML format using PHp
body: <pre><code>&lt;?php 
  include 'dbcon.php';
  
  $sql    ="select * from users";
  $result = $adb-&gt;query($sql);
  
  while ($row=$adb-&gt;fetch_array($result))
  {
  }
  </code></pre>
  
  <p>I want to store the result set in the XML format using PHP.</p>