PDA

Click to See Complete Forum and Search --> : Loops


Skeen
Sep 12th, 2000, 03:02 AM
Hiya

I want to create a table in html to display a view from an oracle database, however I can only seem to print the last record. Is it possible to perform a loop in html? If so could anybody help withthe syntax?

Cheers 'n' Beers

dadames
Sep 12th, 2000, 06:48 AM
Something like this...

<table>
<%
rsShopCart.MoveFirst
Do Until (rsShopCart.eof)
' Write rows of data
%>
<tr>
<%
For i = 0 to rsShopCart.Fields.Count - 1
' Display all columns
%>
<td><%= rsShopCart.Fields(i) %></td>
<%
Next
%>
</tr>
<%
rsShopCart.movenext
Loop
%>
</table>

Skeen
Sep 14th, 2000, 02:36 AM
Nice 1

worked a treat, Thanx

Skeen