<%Set rs = Server.CreateObject("ADODB.Recordset")
maxannounce=9
if not isempty(request("page")) then
currentpage=cint(request("page"))
else
currentpage=1
end if
sql="Select * from news order by id desc"
rs.open sql,conn,3,2
'if not rs.eof and not rs.bof then
totalannounce=rs.recordcount
if currentpage<>1 then
if (currentpage-1)*maxannounce
|