问题描述
FunctionCommend(ByValWordList)DimRsDimWordItemDimIDImSQLDimTitleDimContentDimURLDimHomePageWordItem=Split(WordList,Chr(32))ForI=0ToUBound(WordItem)SQL=SQL&"KeywordLike'%"&WordItem(I)&",%'Or"NextSQL=Left(SQL,(Len(SQL)-3))SetRs=Conn.Execute("SelectTop10*FromCommendWhere("&SQL&")AndTimeout>='"&FormatDateTime(Date,2)&"'OrderByPriceDesc")IfRs.EOFOrRs.BOFThenElseSetTitle=Rs("Title")SetContent=Rs("Content")SetURL=Rs("URL")DoWhileNotRs.EOFCommend=Commend&"<spanstyle='font-size:15px'><ahref='http://"&URL&"'target='_blank'>"&Title&"</a></span><br>"Commend=Commend&"<spanstyle='line-height:150%;font-size:13px'>"&Content&"</span><br>"IfInStr(1,URL,"/",0)=0ThenHomePage=URLElseHomePage=Left(URL,InStr(1,URL,"/",0)-1)EndIfCommend=Commend&"<spanstyle='line-height:150%'><fontcolor='#008000'>"&HomePage&"</font></span><br><br>"Rs.MoveNextLoopEndIfRs.CloseSetRs=NothingEndFunction
解决方案
解决方案二:
那个不懂做个标记啊.难道一大段都翻译成中文.
解决方案三:
这是asp不是asp.net都是很基本的语句,建议你找一本asp的书看下。前面是构造sql,后面是拼接html。