File:cn/goods.htm
Method:query.map(columns,*where,*order)
'and' 附近有语法错误。
select top 1 GoodsName,MetaKeywords,MetaDescription FROM cpgoods WHERE GuId = 'A7388571' and
数据库执行错误
cn/xmls/goods.xmls
$sub main(){
$shell.call($get(method));
}
//标题
$sub start(){
@querygoods=$query(goods,goods);
@querygoods[GuId]=$argv(0,$null);
@GoodsMap=@querygoods.map(['GoodsName,MetaKeywords,MetaDescription'],['{*GuId =} and {*AreaId = $shell.getData(cn)}']);
$if(@GoodsMap){
@Name=@GoodsMap[GoodsName];
@MetaKeywords=@GoodsMap[MetaKeywords];
@MetaDescription=@GoodsMap[MetaDescription];
}
$else{
@Name=产品详情;
@MetaKeywords=$empty;
@MetaDescription=$empty;
}
$shell[Title]=$join(@Name,-,$shell.getData(metaTitle));
$shell[Head]=$html.file(css/goods.css);
$shell[Meat]=$join(["<meta name="keywords" content="{@MetaKeywords}"/>"],[...