Ciao al forum.
Problema di paginazione in MySQL: mentre il link pagina precedente funziona bene, il link pagina successiva si visualizza sempre anche quando non ho più records da estrarre.
Cosa sbaglio?![]()
Gracias!codice:<% count = 0 pageSize = 25 if(len(Request.QueryString("pagina"))=0)then currentPage = 1 else currentPage = CInt(Request.QueryString("pagina")) end if If Not IsNumeric (currentPage) Then currentpage = 1 If currentPage < 1 Then currentPage = 1 start = ((currentPage - 1) * pageSize) If start < 0 Then start = 0 %> <% SQL = "..... %> <% if currentPage > 1 then %> Pag precedente <% else %> Pag precedente<% end if %> | <% if cInt(start) <> cInt(pageSize) then %> Pag successiva <% else %> Pag successiva <% end if %>

Rispondi quotando