File:index.html
Method:query.table(columns,*where,*order,*top)
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
数据库执行错误
xmls/index.xmls
...uct(format,TagIds){
@querygoods=$query(product,product);
@TagIds=[",{@TagIds},"];
@querygoods[TagIds]=@TagIds;
@AreaId=$shell[AreaId];
@querygoods[AreaId]=@AreaId;
@tablegs=@querygoods.table(*,['Status>0 and TagIds like {#like(%TagIds%)} and AreaId={*AreaId}'],['Grade desc,ProductId asc']);
@goodlist=@tablegs.format(@format);
$return(@goodlist);
}

//取首页banner图
$function bananer(format){
@queryelement=$query(element,page);
@AreaId=$shell[AreaId];
@queryelement[AreaId]=@AreaId;
@
tablegs=@queryelement.table(*,['Status>0 and ParentId=76 and AreaId={*AreaId}'],['Grade desc,ElementId asc']);
@goodlist=@tablegs.format(@format);
$return(@goodlist);
}


//首页新闻
$function recommendNews(format,TagIds,CatalogId){
@querycon=$query(content,content);
@querycon[CatalogId]=@CatalogId;
@TagIds=[",{@TagIds},"];
@querycon[TagIds]=@TagIds;
@AreaId=$shell[AreaId];
@querycon[AreaId]=@AreaId;
@tablexw=@querycon.table(*,['Status>0 and CatalogId={*CatalogId} and TagIds like {#l...