最后一条记录特殊显示第3问 50分 急
cp713 2009-11-09 01:32:42 <%
Set rs= Server.CreateObject("ADODB.recordset") '创建打开对象
rs.open "Select * from 产品中心",lj,1,1
Do until rs.eof
mc=rs("mc")
Rs.movenext
if rs.eof then
mc=mc&"最后一条记录"
end if
Response.Write mc
Loop
rs.close
set rs=nothing
lj.close
set lj=nothing
%>
这句话可以的 如果
mc不是简单的rs("mc") 而是一张表格能怎么写
比如 输出
<table cellspacing="0" cellpadding="0">
<tr>
<td> <% =rs("mc") %> </td>
</tr>
</table> <%
最后条记录
<table cellspacing="0" cellpadding="0">
<tr>
<td> <% =rs("mc") %>最后条记录 </td>
</tr>
</table> <%