关于分页的一个问题!!
我现在要从两张表中取出数据,进行排序,排序方法我已经写好了,现在的问题就是如何来分页显示,请指教!!谢谢 !
排序方法:
sql="select * from search where keyWord="&keyword&"order by rand //rand 为他要显示的排名
set sub_rs=server.createobject("adodb.recordset")
sub_rs.open sql,conn,1,3
count=sub_rs.recordset
sql="select * from ecom_product_info "&tj_add&" order by dateTime
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if sub_rs.eof then
按照原来的输出
end if
for i=0 to count
if sub_rs.eof then exit for
myArray(i)=sub_rs("rand")
sub_rs.movenext
next
end if
j=1
for i=1 to count
if j-myArray(i)<o then
count1=myArray-j
for j=1 to count1
从原来里面输出
rs.movenext
next
j=maArray(i)+1
end if
if j-myArray(i)=o then
从新的里面输出相应的
j++
end if
next