File:cn/goods2.htm
Method:query.table(columns,*where,*order,*top)
关键字 'and' 附近有语法错误。 select top 10 * FROM cocontent WHERE Status>0 and and TagIds like '%,3,%' ORDER BY Grade desc,Modified desc,ContentId desc
数据库执行错误
cn/xmls/goodsss.xmls
...
$sub SelectSDS(){
@TableDownload=$query(msds,download);
@TableDownload[GoodsCode]=@GoodsCode;
@FileName=@TableDownload.scalar(FileName,['{*GoodsCode =} and AreaId=1']);
$if(@FileName){
@texten=$file.readText($file.getMapPath(@FileName));
$return(@texten);
}
$write($empty);
}

//查询产品en SDS
$sub SelectEnSDS(){
@TableDownload=$query(msds,download);
@TableDownload[GoodsCode]=@GoodsCode;
@FileName=@TableDownload.scalar(FileName,['{*GoodsCode =} and AreaId=2']);
$write.out(@FileName,
1);
$if(@FileName){
@texten=$file.readText($file.getMapPath(@FileName));
$return(@texten);
}
$write($empty);
}



//新闻
$sub glistNews(format,tagIds){
@row=$map();
@call=$call(xmls/public.xmls);
@call.load();
@querynew=$query(content,content);
@tagId=[",{@tagIds},"];
@querynew[TagIds]=@tagId;
@listnews=@querynew.table( *,['Status>0 and {*AreaId = $shell[AreaId]} and {*TagIds like }'],['Grade desc,Modified desc,ContentId desc'],10);
@contentlist=@listnews.format(@format);
$if(@...