asp下循环一行多少个

2018-09-06 10:53

阅读:521

  <%
setrs=server.createobject(adodb.recordset)
sql=Select*fromfriendorderbyidDESC
rs.Opensql,conn,1
i=1
dowhilenotrs.eof
%><tdalign=leftheight=50>
<ahref=<%=rs(url)%>>
<imgsrc=<%=rs(logo)%>class=framedwidth=88height=31alt=<%=rs(name)%>/></a>
</td>
<%
ifimod5=0then
Response.Write(</tr><tr>)
endif
i=i+1
rs.movenext
Loop
rs.close
setrs=nothing
%>




评论


亲,登录后才可以留言!