Ciao, ho un problema nel paginare i risultati di una SELECT. Ho cercato nel forum ma non sono riuscito a trovare un esempio semplice che mi possa fare capire come fare.
In patrica io dovrei dividere su diverese pagine il risultato di una SELECT. Il codice delle pagina è il seguente. Help Me,
Grazie a tutti.
<%
Set Conn=Server.CreateObject("ADODB.Connection")
strConn="driver={Microsoft Access Driver (*.mdb)}; "
strConn=strConn & " DBQ=" & Server.MapPath("/mdb-database/database.mdb")
Conn.Open strConn
sql = "SELECT * FROM auto"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn
do while not(rs.eof)
%>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="173"><table width="782" height="146" border="0" align="center" cellpadding="0" cellspacing="0" id="link">
<tr>
<td width="173" rowspan="4"><table width="160" height="120" border="2" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="167" align="center">">[img]<%=rs([/img]" alt="" name="img1" width="150" height="110" border="0" id="img1" /></td>
</tr>
</table></td>
<td width="11" rowspan="4"></td>
<td width="598" height="34"><table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span class="Stile2"><%=rs("modello")%></span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="38"><table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="592" height="20"><span class="Stile3">Descrizione:</span></td>
</tr>
<tr>
<td class="Stile5"><div class="Stile4"><%=rs("descrizione")%></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20"><table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="610" class="Stile3">Prezzo:</td>
</tr>
<tr>
<td class="Stile4"><%=rs("prezzo1")%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="19"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"><hr /></td>
</tr>
</table>
<%
rs.movenext
loop
rs.Close
set rs = Nothing
conn.Close
set conn = Nothing
%>