最后一条记录特殊显示继续问 50分 急
cp713 2009-11-09 11:20:19 <%
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&"最后一条记录"
Response.Write mc
Loop
rs.close
set rs=nothing
lj.close
set lj=nothing
%>
上面是上次得到的回答 还有没有另外种写法
这种写法如果在if rs.eof then这里敲个回车就出现错误了
如果我在这里写个表格呢 那肯定要敲回车的
比如
if rs.eof then%>
<table cellspacing="0" cellpadding="0">
<tr>
<td><% =rs("mc") %></td>
</tr>
</table><%
这样这句话就错误了