Results 1 to 3 of 3

Thread: Loops

  1. #1

    Thread Starter
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Wink

    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!"

  2. #2
    Member
    Join Date
    Aug 2000
    Location
    Florida
    Posts
    45
    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...

  3. #3

    Thread Starter
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Talking

    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
  •  



Click Here to Expand Forum to Full Width