<% set rs=server.CreateObject("adodb.recordset") rs.open "select * from album order by id asc",conn,1,1 if not rs.eof then i=0 rs.pagesize=10 page=request("page") if trim(page)="" then page=1 elseif Cint(page)<1 then page=1 else if not isnumeric(page) then page=1 end if end if if Cint(page)>rs.pagecount then page=rs.pagecount rs.absolutepage=page for m=1 to rs.pagesize if rs.eof then exit for %>