ok allora posto tuto il codice delle pagine così scilgo ogni dubbio:
config.asp
codice:<% connSR = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("db.mdb") sub open_conn() Set objConn=Server.CreateObject("ADODB.Connection") objConn.ConnectionString=connSR objConn.Open end sub sub close_conn() objConn.Close Set objConn=nothing end sub %>
index.asp
codice:<% call open_conn() RecordsPerPagina = 15 pagina = Request("pagina") if pagina="" or pagina="0" then pagina=1 pagina2 = pagina set rs = Server.CreateObject("ADODB.Recordset") strRicerca = Request.form("select") rs.open "select * from ristoranti order by id desc", Conn, 1, 3 rs.PageSize = RecordsPerPagina rs.AbsolutePage = pagina For i=1 to RecordsPerPagina if Not rs.EOF then %> [img]images/sito/default/space.gif[/img]· "><%=rs("nome")%> <% rs.MoveNext end if Next %> <center> <% Response.Write "Pagine:" For pagina=1 to rs.PageCount if cint(pagina) = cint(pagina2) then %> <font color="#FF0000">[<%=pagina%>]</font> <% else %> [<%=pagina%>] <% end if Next call close_conn() %> </center>
Grazie anziutto per il tempo speso

Grazie anziutto per il tempo speso
Rispondi quotando
