序号怎么弄(已解决,各位看看,如有更好的方法说声)
老师们:自动递增的序号([color=Red]i[/color])怎么实现呀?
查询结果(有很多条):
<%
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * FROM [表]"
rs.open sql,conn,1,1
if rs.recordcount<>0 then
[color=Red] i=0[/color]
do while not rs.eof
[color=Red] i=i+1[/color]
%>
<table width="200" border="1">
<tr>
<td> 序号</td>
<td>姓名</td>
<td>数量</td>
</tr>
<tr>
<td><%=[color=Red]i[/color]%></td>
<td><%=rs("xingming")%></td>
<td><%=rs("shuliang")%></td>
</tr>
</table>
[[it] 本帖最后由 anjincheng 于 2008-6-15 23:02 编辑 [/it]] 等呀!老师们! 这叫什么跟什么?乱七八糟的。 不觉得乱。
页:
[1]
