ASP记录
各位前辈帮看看哪里出错,我现在rs可以正常显示,rs1只显示一条记录并重复显示
<HTML>
<HEAD>
<title>七站</title>
<style type="text/css">
<!--
@import url("25175_1.css");
body {
margin-top: 0px;
background-image: url(../Imagess/1/vb1.gif);
}
.style18 {font-size: 12px}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1"><div align="center"></div></td>
</tr>
</table>
<table width="768" border="0" align=center cellpadding="0" cellspacing="0">
<tr> </tr>
<tr>
<td height="25" colspan=8 bgcolor="#A0A4AC"><a href="add.asp"> </a><a href="index.asp">首页</a> <a href="add.asp">添加</a> <a href="del.asp">删除</a> <a href="modify.asp">修改</a></td>
</tr>
<tr> </tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#A0A4AC">
<td width="50" height="25"> 姓名</td>
<td width="100">A类信息合计</td>
<td width="200">B类信息合计</td>
<td width="300">总信息合计</td>
</tr>
</table>
<div align="center">
<!--#include file="conn.asp" -->
<%
set rs=conn.execute("select mp_teemcode from jbb")
rs.open sql,conn,1,1
set rs1=conn.execute("select cj from jbb")
rs1.open sql,conn,1,1
if rs.EOF or rs.BOF then
Response.Write "数据库中暂无资料!"
else
do while not rs.EOF or rs.BOF
%>
</div>
<table width="407" border="1" align="center">
<tr>
<td><table width="139" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#A0A4AC">
<td width="47" height="25"><span class="style18"><%=rs("mp_teemcode")%></span></td>
<td width="30"> </td>
<td width="25"> </td>
<td width="228"> </td>
</tr>
</table></td>
<td><table width="145" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#A0A4AC">
<td width="50" height="25"><span class="style18"><%=rs1("cj")%></span></td>
<td width="100"> </td>
<td width="200"> </td>
<td width="300"> </td>
<!--备份 -->
</tr>
</table></td>
<td><table width="145" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#A0A4AC">
<td width="50" height="25"> </td>
<td width="100"> </td>
<td width="200"> </td>
<td width="300"> </td>
</tr>
</table></td>
</tr>
</table>
<%
rs.movenext
loop
end if
set rs=nothing
set conn=nothing
%>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1"><div align="center"></div></td>
</tr>
</table>
</BODY>
</HTML>