谢谢arhui的指点,hui字辈的都是好样的。:D
我刚才说的是新浪论坛,不是新闻,看这个
bbs7.sina.com.cn-------------------------------------------------------------
现在我是用这个语句的,
rs.close
'AnnounceID,parentID,child,boardID,userID,UserName,UserEmail,URL,URLTitle,URLPic,Topic,DateAndTime,hits,length,RootID
if selStr<>"()" then
sql="select AnnounceID,parentID,child,boardID,userID,UserName,UserEmail,URL,URLTitle,URLPic,Topic,DateAndTime,hits,length,RootID,layer,orders from Announce where BoardID="&cstr(boardID)&" and ( RootID in "&selStr& " ) ORDER BY rootID desc,orders"
else
sql="select AnnounceID,parentID,child,boardID,userID,UserName,UserEmail,URL,URLTitle,URLPic,Topic,DateAndTime,hits,length,RootID,layer,orders from Announce where BoardID="&cstr(boardID)&" ORDER BY RootID desc,orders "
end if
-----------------------------------------------------------------------
外循环和内循环具体怎么用?