<%sqlstr="select * from t_guestbook_main where me_version='cn' order by mydate desc,hf_date desc"
set myrs=server.CreateObject("adodb.recordset")
myrs.Open sqlstr,conn,1,1
if myrs.RecordCount>0 then
myrs.PageSize=10'每页显示的记录数
total_page=myrs.PageCount
total_red=myrs.RecordCount
current_page=Request("me_page")
if current_page="" then
current_page=1
elseif not isnumeric(current_page) then
current_page=1
else
current_page=cint(current_page)
end if
if current_page>total_page then
current_page=total_page
elseif current_page<1 then
current_page=1
end if
myrs.AbsolutePage=current_page
%>