<%
' Loop through recordset and display results
If Not rsDC.EOF Then rsDC.MoveFirst
' Get the number of fields and subtract one so our loops start at 0
' iFieldCount = rsDC.Fields.Count - 1
' For iLoopVar = 0 to iFieldCount
' rsDC.Fields(iLoopVar)
' Continue till we get to the end, and while in each loop through fields
Do While Not rsDC.EOF
%>
<% For Each Field In rsDC.Fields %>
<% If Field.Name = "cover" Then
Response.Write "![]() | "
ElseIf Field.Name = "title" Then
Response.Write "Title: " & Field.Value & " "
ElseIf Field.Name = "request" Then
Response.Write " | "
End If %>
<% Next %>
| |
<%
rsDC.MoveNext
Loop
%>
<%
' Close Data Access Objects and free DB variables
rsDC.Close
Set rsDC = Nothing
' can't do a "cmdDC.Close" !
Set cmdDC = Nothing
DataConn.Close
Set DataConn = Nothing
%>