weee
03-30-2006, 02:36 PM
I'm tryin to add a <TR> every time I have 4 <TD> and I think I'm missing something.
My code:
<table>
<tr>
<%
SQL = "SELECT color FROM productsTBL"
rs.Open SQL,DSN,3,1
If NOT rs.eof Then
For i=1 To numFiles
If i mod 4 Then
tr = ""
Else
tr = "</tr>"
End If
Next
Do Until rs.eof
%>
<a href="<%=rs("id")%>"><%=rs("id")%></a>
<%
rs.moveNext
loop
response.write tr
End If
%>
</tr>
</table>
What's missing there in order to get it working?
My code:
<table>
<tr>
<%
SQL = "SELECT color FROM productsTBL"
rs.Open SQL,DSN,3,1
If NOT rs.eof Then
For i=1 To numFiles
If i mod 4 Then
tr = ""
Else
tr = "</tr>"
End If
Next
Do Until rs.eof
%>
<a href="<%=rs("id")%>"><%=rs("id")%></a>
<%
rs.moveNext
loop
response.write tr
End If
%>
</tr>
</table>
What's missing there in order to get it working?