I'm currently designing a website in asp classic. One of the pages requires that I pull information from a database. I've accomplished this, but I need to reformate how the results are displayed on the webpage. The code needs to display 7 records in a table, then drop down to a new line and display 7 more or end with the remainder of the records. I hope that makes sence. Right now my code displays the results in one long line that runs off the screen.
Any help is appreciated! Thank you!
The code that I am using is below:
Code:
<table>
<tr>
<%
strProvidera="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=<MY DATABASE CONNECTION>\data1.mdb"
dim rslog
set rslog=Server.CreateObject( "ADODB.Recordset" )
rslog.Open "SELECT * FROM projvid Where referenceid = '1'", strProvidera, , , adCmdTable
if not rslog.eof then
do while not rslog.eof
%>
<td><a href="" onclick="showStuff('<%=rslog("autonum")%>'); return false;"><img src="<%=rslog("thumb")%>" width="50"></a></td>
<% rslog.movenext
loop
else
response.write " Nothing matched your search. Please try again."
response.write ""
end if
%>
</tr>
</table>