<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("example3.mdb")
exec="select * from guestbook"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
</p>
<table width="800" border="1" align="center">
<tr>
<td width="106"><span class="style3">姓名</span></td>
<td width="286"><span class="style3">邮件地址</span></td>
<td width="164"><span class="style3">所在班级</span></td>
<td width="316"><span class="style3">登记时间</span></td>
</tr>
</table>
<table width="800" border="1" align="center" cellpadding="0" cellspacing="0">
<%do while not rs.eof%><tr>
<td width="124"><%=rs("name")%></td>
<td width="277"><%=rs("tel")%></td>
<td width="223"><%=rs("bj")%></td>
<td><%=rs("time")%></td>
</tr><%
rs.movenext
loop
%>
我调试过了,你的代码有问题的。没有下一页、上一页、尾页功能,打开首页index.asp后显示12条记录,但是下一页 按钮没有超链接。尾页有超链接:
http://192.168.10.8/index2.asp#?page=4