Originariamente inviato da analce
nonostante abbia impostato il pagesize continua a farmi vedere sempre tutti i record
dove sbaglio!
grazie!
<%
' FUNZIONE CHE MI RESTITUISCE IL TITOLO DI UN ID
' ----------------------------------------------
function leggimes(id)
strSQL = "SELECT * FROM messaggi WHERE rif = "&id
dbname = database("forum")
set adoRes = esegui2(strSQL,dbname)
adoRes.PageSize=2
adoRes.AbsolutePage=1
do while (adoRes.EOF = False)
%>
<tr>
<td width="240" <%=bordo%>>
<p class="forum2"><%=adores(2)%><%modcancmess(adores)%></td>
<td width="130" <%=bordo%>><p class="forum3"><%=adores(1)%><p class="forum3"><%=adores(5)%></font></td>
<td width="40" <%=bordo%>><p class="forum3"><%=datimess("nmess",adores(0))%></font></td>
<td width="130" <%=bordo%>><p class='forum3'><%=datimess("ultmess",adores(0))%></font></td>
</tr>
<%
adoRes.movenext
loop
closeDBconn adores
%>
<tr>
<td width="240" align="left"><p class="forum4">
prec</td>
<td width="130"><p class="forum3"></td>
<td width="30"><p class="forum3">[/b]</td>
<td width="130"><p class="forum5">
succ</td>
</tr>
<%
end function
%>