JohannIcon
Programmer
Hi All,
I am trying to populate an HTML table from a database, which I am managing, however, I am displaying the records all horizontally, and since I have a lot of records and images, the page looks very big. So I wish to display for example 8 records vertically and then another eight records vertically below them etc. How can I do that? Here is my existing code:-
<table width="80%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<%
rs.MoveFirst
%>
<tr>
<%do%>
<td width="33%"><div align="center"><br>
<a href="kunsilli.asp?cid=<%Response.Write(rs.Fields("CouncilID"
)%>" target="_self"><img src="images/flags/<%=(rs.Fields.Item("Image"
.Value)%>" border="0"></a>
</div></td>
<td width="67%" class="LargeText"><blockquote><b>
<%Response.Write(rs.Fields("CouncilName"
)%></b>
</blockquote></td>
</tr>
<%
rs.MoveNext
if rs.eof then
exit do
End If
loop until rs.eof
%>
</table>
I am trying to populate an HTML table from a database, which I am managing, however, I am displaying the records all horizontally, and since I have a lot of records and images, the page looks very big. So I wish to display for example 8 records vertically and then another eight records vertically below them etc. How can I do that? Here is my existing code:-
<table width="80%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<%
rs.MoveFirst
%>
<tr>
<%do%>
<td width="33%"><div align="center"><br>
<a href="kunsilli.asp?cid=<%Response.Write(rs.Fields("CouncilID"
</div></td>
<td width="67%" class="LargeText"><blockquote><b>
<%Response.Write(rs.Fields("CouncilName"
</blockquote></td>
</tr>
<%
rs.MoveNext
if rs.eof then
exit do
End If
loop until rs.eof
%>
</table>