On Sep 26, 2003, at 11:36 AM, Michael Kaye wrote:

You don't have to, the alternative is right in the RowSet documentation. The easiest (and preferred) way to access row data is to get the row first with GetRow() and then directly reference the columns from that. Unfortunately my documentation was wrong. The example on page 340 should be:

<%
   while(RowSet.Next($rs))
      $row := RowSet.GetRow($rs)
%>
<tr>
<td><%=$row{"Name"}%></td>
<td><%=$row{"Phone"}%></td>
<td><%=$row{"Email"}%></td>
</tr>
<% end while %>

Your documentation can't be that wrong as this is exactly how I'm doing it.

If you are doing it as listed above, that is correct. In my exiting documentation I had the RowSet.GetRow() call above the while(), which won't work very well!



As you can guess another Rowset user here! For those not using Rowset, it really is worth checking out for situations where you need to show rows of records or as in my case arrays.

The real power of RowSet will come when I implement creating a RowSet from data, which will allow you to create test datasets, thus allowing you to test your site before you have the database structure fully defined.


Also, RowSet will be the foundation for new features I have planned for the future.

Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com




Reply via email to