试试:
|
<% page=clng(request("page")) set rs=server.CreateObject("adodb.recordset") sql="select * from links order by id desc" rs.open sql,conn,1,3
if rs.bof and rs.eof then response.Write " no,file | " else
rs.PageSize=14 if page=0 then page=1 pages=rs.pagecount if page > pages then page=pages rs.AbsolutePage=page k=1 for j=1 to rs.PageSize if k=1 then Response.Write "" %>
|
|
|
" target="_blank"><%=rs("name")%> | <% if k=2 then Response.Write " " : k=1 k=k+1 s=s+1 rs.movenext if rs.eof then exit for next %>
|
|
===========================================
看了你的提问和代码,不是很明白你的意思。
是不是要分左右两栏显示,每栏10条记录,这10条记录分10行显示?
|
<% page=clng(request("page")) set rs=server.CreateObject("adodb.recordset") sql="select * from links order by id desc" rs.open sql,conn,1,3
if rs.bof and rs.eof then response.Write " no,file | " else
rs.PageSize=14 if page=0 then page=1 pages=rs.pagecount if page > pages then page=pages rs.AbsolutePage=page %>
|
<% end if s=s+1 rs.movenext if rs.eof then exit for next %>
|
|
|