<% set rs=server.CreateObject("adodb.recordset")
rs.open"select top 3 * from nclass where class_id=2 order by intorder asc,nclass_id asc",conn,1,1
if not rs.eof then
ic=1
while not rs.eof%>
<% rs.movenext
ic=ic+1
wend
end if
rs.close
set rs=nothing %>