请教,detail.asp是显示更多页面,detail.asp?id=1,当ID为一个的时候,没有问题,如果ID为两个或者更多应该怎么显示数据(ID是新闻的大类),先谢谢了^_^
------解决方案--------------------
do while not rs.eof
......取数据
rs.movenext
loop
------解决方案--------------------
do while not rs.eof
detail.asp?id= <%=rs( "表中的字段 ")%>
rs.movenext
wend
------解决方案--------------------
id= "3,8,4,2, "
idd=split(id, ", ")
for i=0 to ubound(idd)-1
response.write idd(i)
sql= "select x from xx where id= "&cint(idd(i))
set rs=server.createobject( "adodb.recordset ")
rs.open sql,conn,1,1
response.write rs( "x ")& " <br> "
rs.close
next