亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問在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 關注
  • 262 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號