<body>
<%
Set conn=Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("guest.mdb")
conn.open connstr
%>
<table border="1" cellpadding="0" cellspacing="0">
<tr><td>姓名<td>E-mail<td>内容<td>ip<td>留言时间<Td>操作
<%
Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from liuyan order by id desc"
rs.open sql,conn,3,3
rs.pagesize=5
totalcount=rs.recordcount
totalpages=rs.pagecount
rs.movefirst
nowpage=request("page")
If nowpage="" or nowpage=0 Then
nowpage=1
Else
nowpage=Cint(nowpage)
End If
rs.absolutepage=nowpage
n=1
Do while not rs.eof and n<=rs.pagesize
%>
<tr><td><%=rs("name")%><td><%=rs("email")%><td><%=rs("neirong")%><td><%=rs("ip")%><td><%=rs("date")%><td><a href="del.asp?del_id=<%=(TRIM(rs("id")))%>">删除</a>
<%
n=n+1
rs.movenext
loop
%>
</table>
<hr />
<table>
<tr><td>共有<%=totalcount%>条记录
<td>共有<%=totalpages%>页
<td><%If nowpage>1 Then%>
<a href="messageadmin.asp?page=<%=nowpage-1%>">上一页</a>
<%Else%>
上一页
<%End If%>
<td><%For k=1 to totalpages%>
<a href="messageadmin.asp?page=<%=k%>"><%=k%></a>
<%next%>
<td><%If nowpage<totalpages Then%>
<a href="messageadmin.asp?page=<%=nowpage+1%>">下一页</a>
<%Else%>
下一页
<%End If%>
</table>
这个是源程序,如何改?