|
-
Sep 12th, 2000, 03:02 AM
#1
Thread Starter
Addicted Member
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
"It wasn't the booze that made me snooze, It was the Gin that did me in!"
-
Sep 12th, 2000, 06:48 AM
#2
Member
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>
If I could only remember my name...
-
Sep 14th, 2000, 02:36 AM
#3
Thread Starter
Addicted Member
Nice 1
worked a treat, Thanx
Skeen
"It wasn't the booze that made me snooze, It was the Gin that did me in!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|