为了账号安全,请及时绑定邮箱和手机立即绑定

请问在asp里table表格怎么才能循环?求如何实现?

请问在asp里table表格怎么才能循环?求如何实现?

慕娘9325324 2022-04-08 11:07:11
<%response.charset = "GBK"if request.cookies("guest")("username")="" thenresponse.write "<script>alert('非法操作1!');history.back();</script>"response.endend if%><!--#include file="conn.asp"--><%dim rs,sqlset rs = server.createobject("adodb.recordset")sql = "select * from G_Note where G_ToUser='"&request.cookies("guest")("username")&"'"rs.open sql,conn,1,1%>以上是头部一次增加一条呢?<div id="contentmember"><h1>会员个人中心</h1><div><p style="text-align:center;height:30px;line-height:30px;">收件箱 | 发件箱</p><table border="1"><tr><th>发件人</th><th>发件内容</th><th>发件时间</th></tr><%do while not rs.eof%><tr><td>发件人</td><td>发件内容</td><td>发件时间</td></tr><%rs.movenextloop%></table></div></div>把而变成一条了,请朋友们给看看
查看完整描述

1 回答

?
慕码人8056858

TA贡献1803条经验 获得超6个赞

<table border="1">
<tr><th>发件人</th><th>发件内容</th><th>发件时间</th></tr>
<%
do while not rs.eof
%>
<tr><td>发件人</td><td>发件内容</td><td>发件时间</td></tr>
<%
rs.movenext
loop
%>
</table>

改成:
<table border="1">
<tr>
<td>发件人</td>
<td>发件内容</td>
<td>发件时间</td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td>发件人</td>
<td>发件内容</td>
<td>发件时间</td>
</tr>
<%
rs.movenext
loop
%>
</table>



查看完整回答
反对 回复 2022-04-11
  • 1 回答
  • 0 关注
  • 268 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号