% dim rst,currentpage,rowcount,i currentpage = Request.QueryString("currentpage") if currentpage="" then currentpage=1 end if typeid = request.querystring("Typeid") if typeid="" then typeid = 1 end if set rst=server.CreateObject("adodb.recordset") rst.CursorType = adOpenStatic rst.PageSize = 6 rst.open "select * from News where typeid="&typeid&" order by id desc",Conn,1,1 rst.AbsolutePage=Cint(currentpage) %>
![]() |
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||