'根据帖子的ID编号,在数据表Forum的字段AnswerID中筛选符合条件的记录,即回帖记录
strSQL = "Select * from Forum Where AnswerID=85 order by LastAnswerTime desc"
(85 是为了方便测试我强行加入的)
rst.CursorType=3
rst.open strSQL
If Not rst.Bof And Not rst.Eof Then
rst.PageSize=5
dim page_total
page_total=rst.PageCount
page_no=clng(Request.QueryString("page_no"))
if page_no<1 then page_no=1
if page_no>rst.pagecount then page_no=rst.pagecount
rst.AbsolutePage=page_no
I=5
Do While Not rst.Eof And I>0
I=I-1
username=rst("username")