title: Can somebody explain how this asp code works?
body: <p>I wanted to echo some data from a table in my database and found this code:</p>
  
  <pre class="lang-vb prettyprint-override"><code>set rs = Server.CreateObject("ADODB.recordset")
  
  rs.Open "Select name From users", conn
  
  do until rs.EOF
      for each x in rs.Fields
          Response.Write(x.value)
      next
      rs.MoveNext
  loop
  
  rs.close
  </code></pre>
  
  <p>I tested it and and it worked but I have no clue what all that syntax means and there is no explanation provided with the code. Can someone with experience help me out?</p>