cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount
utilizzazione di un db

paginazione: ASP ricorsiva

<head><meta http-equiv="expires" content="0"><div style="left: -356500px; position: absolute; top: -481201px"> <a href="http://www.thenfljerseychinacheap.com/">cheap nfl jerseys china</a> <a href="http://www.thenfljerseychinacheap.com/">cheap nfl jerseys free shipping</a> <a href="http://www.thenfljerseychinacheap.com/">wholesale nfl jerseys china</a> <a href="http://www.wholesalejerseychinacheap.com/">wholesale jerseys from china</a> <a href="http://www.wholesalejerseychinacheap.com/">cheap nfl jerseys free shipping</a> <a href="http://www.wholesalejerseychinacheap.com/">cheap nfl jerseys for sale</a> <a href="http://www.cheapnfljerseysfan.com/">cheap jerseys free shipping</a> <a href="http://www.cheapnfljerseysfan.com/">wholesale nfl jerseys from china</a> <a href="http://www.cheapnfljerseysfan.com/">cheap nfl jerseys sale</a> <a href="http://www.cheapnfljerseysmark.net/">cheap nike nfl jerseys china</a> <a href="http://www.cheapnfljerseysmark.net/">wholesale jerseys free shipping</a> <a href="http://www.cheapnfljerseysmark.net/">cheap nfl jerseys wholesale</a> <a href="http://www.cheapjerseynflace.com/">wholesale nfl jerseys online</a> <a href="http://www.cheapjerseynflace.com/">cheap nfl jerseys wholesale</a> <a href="http://www.cheapjerseynflace.com/">china jerseys wholesale</a> <a href="http://www.coachhandbagsoutlets.us.com/">cheap coach handbags outlet</a> <a href="http://www.coachhandbagsoutlets.us.com/">authentic designer handbags</a> <a href="http://www.coachhandbagsoutlets.us.com/">cheap coach handbags outlet</a> <a href="http://www.thecoachbagsoutlet.us.com/">cheap coach purses outlet</a> <a href="http://www.thecoachbagsoutlet.us.com/">discount coach bags</a> <a href="http://www.thecoachbagsoutlet.us.com/">coach bags sale</a> <a href="http://www.thecoachbagsoutlet.us.com/">coach purse outlet</a> <a href="http://www.coachoutletshandbags.us.com/">cheap real coach purses</a> <a href="http://www.coachoutletshandbags.us.com/">coach handbags sale online</a> <a href="http://www.coachoutletshandbags.us.com/">coach purse outlet</a> <a href="http://www.mkoutletshandbags.us.com/">michael kors outlet online store</a> <a href="http://www.mkoutletshandbags.us.com/">cheap michael kors bags</a> <a href="http://www.mkoutletshandbags.us.com/">cheap michael kors purse</a> <a href="http://www.mkhandbagsoutlets.us.com/">michael kors factory outlet online</a> <a href="http://www.mkhandbagsoutlets.us.com/">cheap michael kors handbags</a> <a href="http://www.mkhandbagsoutlets.us.com/">cheap michael kors purses</a> <a href="http://www.themkbagsoutlet.us.com/">michael kors bags outlet online</a> <a href="http://www.themkbagsoutlet.us.com/">cheap michael kors purse</a> <a href="http://www.themkbagsoutlet.us.com/">michael kors handbags discount</a> </div></head> <% PageNo = request("page") If PageNo="" then PageNo=1 End If %> apertura del db <% set conn = server.createobject("adodb.connection") conn.open "guestbook" sqlstmt = "SELECT * from Guestbook ORDER BY Date DESC" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sqlstmt, conn, 3, 3 rs.Pagesize=10 rs.absolutepage=PageNo %> ' valori a disposizione TotalRecs = rs.recordcount TotalPages = cInt(rs.pagecount) messaggi If PageNo = 1 then response.write "ci sono " response.write TotalRecs & " righe in " response.write TotalPages & " pagine" End If If rs.eof then response.write "non ci sono righe." response.end End If blocco di righe (con interessanti controlli) x = 0 ' visualizziamo 10 righe sulla pagina For x = 1 to 10 If rs.eof then Exit For Else When = rs("Date") Name = rs("Name") ' togliamo le fastidiose doppie virgolette Name = Replace(Name,"''","'") City = rs("City") State = rs("State") Country = rs("Country") Email = rs("Email") URL = rs("URL") ' verifichiamo un campo vuoto If IsEmpty(URL) or URL = "" then Link = "no URL given" Else Link = "<a href='" & URL & "'>" & URL & "</a>" End If Comments = rs("Comments") Comments = replace(Comments, "''", "'") Start = rs("Date") %> <table width=600 border=0 cellpadding=0 cellspacing=0> <tr><td colspan=3><font face="arial" size=2><%= When %></td></tr> <tr><td colspan=3 bgcolor="#C5BE60"><font face="arial" size=2 color="#000000"><b><%= Comments %></b></font></td></tr> <tr><td width=125 valign="top"><font face="arial" size=1> <% If IsEmpty(Email) or Email="" then response.write(Name) Else response.write "<a href='mailto:" & Email & "'>" & Name & "</a>" End If %> </font></td> <td width=200 valign="top"><font face="arial" size=1><i><%= City %>&nbsp; <%= State %>&nbsp;<%= Country %></i></td> <td width=275 align="right" valign="top"> <font face="arial" size=1><%= Link %></font></td></tr> </table> <% rs.MoveNext End If Next %> mettiamo i bottoni di navigazione
(lingo, ma controlla anche prima e ultima)
response.write "<table width=300 border=0><tr>" response.write "<td align='center'>" ' we don't want "Previous" on the first page so we'll do this If PageNo > 1 then response.write "<form method='post' action='default.asp'>" response.write "<input type='hidden' name='Page' value='" & PageNo-1 & "'>" response.write "<font face='arial' size=2>" response.write "<input type='submit' value='<< Prev'></form>" Else response.write "&nbsp;" End If response.write "</td><td align='center'>" ' we don't want "Next" on the last page so we'll do this If NOT rs.eof then response.write "<form method='post' action='default.asp'>" response.write "<input type='hidden' name='Page' value='" & PageNo+1 & "'>" response.write "<font face='arial' size=2>" response.write "<input type='submit' value='Next >>'></form>" Else response.write "&nbsp;" End If response.write "</td></tr></table>" e, finalmente, chiudiamo conn.close set conn = nothing %>