标题:这有什么问题
只看楼主
cjrboy
Rank: 1
等 级:新手上路
帖 子:141
专家分:0
注 册:2004-11-30
 问题点数:0 回复次数:0 
这有什么问题
function ShowNewArticle1(ArticleNum,TitleLen,ClassID,caname)
dim sqlNew,rsNew,strrow,strcol,i,tmpdata
dim sqlRoot,rsRoot,trs,arrClassID,TitleStr
nt2003.Name=caname
sqlRoot="select * From ArticleClass where ParentID=" & ClassID & ""
Set rsRoot= Server.CreateObject("ADODB.RECORDSET")
rsRoot.open sqlRoot,conn,1,1
arrClassID=ClassID
do while not rsRoot.eof
arrClassID=arrClassID & "," & rsRoot(0)
rsRoot.movenext
loop
rsRoot.close
set rsRoot=nothing
sqlNew="select top 20 A.ArticleID,A.Title,A.Author,A.UpdateTime,A.Hits,A.ReadLevel,L.LayoutFileName from article A inner join Layout L on L.LayoutID=A.LayoutID where A.Deleted=False and A.Passed=True"
if instr(arrClassID,",")>0 then
sqlNew=sqlNew & " and A.ClassID in (" & arrClassID & ") order by A.articleid desc"
else
sqlNew=sqlNew & " and A.ClassID=" & Clng(arrClassID) & " order by A.articleid desc"
end if
Set rsNew = nt2003.execute(sqlNew)
if rsNew.bof and rsNew.eof then
nt2003.value=""
else
nt2003.value = rsNew.GetString(,,"
搜索更多相关主题的帖子: function where 
2005-05-31 14:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-19768-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.546263 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved