title: php: iterate recordset - easier way?
body: <p>i've just changed from ASP to php and i'm a bit confused about the way php is handling recordsets.
  i'd like to know if there's an easier way to iterate a recordset by creating a php class.
  here's the ASP syntax to show what i mean:</p>
  
  <pre><code>sq = "select * from myData"
  set rs = db.execute(sq)
  do while not rs.eof
      response.write rs("name")  // output data (response.write = echo)
      rs.movenext
  loop
  </code></pre>
  
  <p>any ideas? 
  thanks</p>