<% set rs3=server.CreateObject("adodb.recordset")
sql="select top 2 * from Spin where Classification="&id&"and flei="& rs2("id")&"and not Sxiajia=0 order by hits desc"
rs3.open sql,db,1,1 %>
<% do while not rs3.eof %>
sql="select top 2 * from Spin where Classification="&id&"and flei="& rs2("id")&"and not Sxiajia=0 order by hits desc"
改成这个就可以
sql="select top 2 * from Spin where Classification="&id&"and flei="& rs2("id")&"and not Sxiajia=0"