
April 19th, 2005, 07:56 PM
|
|
Contributing User
|
|
Join Date: Apr 2005
Posts: 175
Time spent in forums: 2 Days 8 h 36 m 22 sec
Reputation Power: 4
|
|
|
Need help formatting looped table results
I am currently using the following loop to pull records from a database and format them as "icons" in a table. My problem is that the icons line up one under another as they should, but after the first 11 records, the results are off the bottom of the screen. I somehow need to modify my loop so that after the first 11 records are pulled, it starts a new column. I'm not sure how to do this, though. Any help you all can provide would be much appreciated. -Chris G.
Code:
<%
Function Table5
%>
<table border = 0>
<%
Do While Not rs.EOF
%><tr><%
For Field = 0 To rs.Fields.Count - 4
%>
<td>
<center><a href="<%=rs(rs.Fields(0).Name)%>" target="new">
<img border="0" title="<%=rs(rs.Fields(3).Name)%>" src="menupics/<%=rs(rs.Fields(1).Name)%>.gif"></a>
<br>
<font color="#FFFFFF" face="Arial" size="2"><%=rs(rs.Fields(2).Name)%></font></center>
</td>
<%
Next
%></tr><%
rs.MoveNext
Loop
%>
</table>
<%
End Function
%>
|