asp换行有问题
请问这点代码哪里有问题?我怎么不能实现显示12条后换行呢?<%response.write"<tablewidth=""100%"">"setrs=server.crea...
请问这点代码哪里有问题?我怎么不能实现显示12条后换行呢?
<%
response.write"<table width=""100%""> "
set rs=server.createobject("adodb.recordset")
rs.open ("select * from History order by id desc"),conn,1,1
i=1
do while not rs.eof
if (i mod 12)=1 then
response.write"<tr>"
end if
response.write"<td align=center><a href=print.asp?yearmonth="&rs("yearmonth")&"&branch_id="&rs("branch_id")&" target=_blank>"&rs("yearmonth")&"</a></td>"
if (i mod 12)=1 then
response.write"</tr>"
end if
i=i+1
rs.movenext
loop
rs.close
%> 展开
<%
response.write"<table width=""100%""> "
set rs=server.createobject("adodb.recordset")
rs.open ("select * from History order by id desc"),conn,1,1
i=1
do while not rs.eof
if (i mod 12)=1 then
response.write"<tr>"
end if
response.write"<td align=center><a href=print.asp?yearmonth="&rs("yearmonth")&"&branch_id="&rs("branch_id")&" target=_blank>"&rs("yearmonth")&"</a></td>"
if (i mod 12)=1 then
response.write"</tr>"
end if
i=i+1
rs.movenext
loop
rs.close
%> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询