File:web/Agent-brand-xq.html
Function Code:510
Method Code:16
語法錯誤 (操作符丟失) 在查詢表達(dá)式 'CatalogID=' 中。
select top 1 ParentID FROM xxcatalog WHERE CatalogID=
數(shù)據(jù)庫執(zhí)行錯誤
class/agent-brand.xmlc
...
$function bannermtaZX(format){
@content=$query(content,news);
@list=@content.format(@format,TOP 5 *,{%Recommend=2 and CatalogID in (3,4,5)%},{%Modified desc,Time desc,Grade desc%}){
}
$return(@list);
}
$function agentNavs(format){
@catalog=$query(catalog,news);
@catalogidd=$get.number(catalogidd);
$if(@catalogidd==0){
@catalogid=$get.number(catalogid);
@id=$get.number(id);
@content=$query(content,news);
$if(@id<>0){
@catalogide=@catalog.dataScalar(ParentID,CatalogID={@id});
@catalogid=@catalog.dataScalar(ParentID,CatalogID={@catalogide});;
}
}
$else{
@catalogid=@catalog.dataScalar(ParentID,CatalogID={@catalogidd});
}
@list=@catalog.format(@format,*,ParentID={@catalogid},{%CatalogID asc ,Grade desc%}){
//@href={%#&:{#root}web/Agent-brand{@catalog.index(1)}_catalogid_{@catalogid}_catalogidd_{@catalog[CatalogID]}.html%};
@i=@catalog.index(1);
@href={%#&:{#^:?xmls=web/Agent-brand{@i\}.html&catalogid={@catalogid\}&catalogidd={@catalog[CatalogID]\}}%};
$if(@cata...