File:en/index.html
Method:db.dataTable(sql)
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)
数据库执行错误
en/xmls/index.xmls
$sub getBanner(catalog){

@db=$db();
@db[ParentId]=@catalog;
@
NewTable3=@db.dataTable(['select top 5 * from wyelement where ParentId={*ParentId} ORDER BY ID desc']);
@NewFormat4=@NewTable3.format([#box.add({ "url": "{*Pic}", "href": "#", "title": "悬浮提示标题1" }),#]);
$return(@NewFormat4);
}


//新闻咨询
$sub NewsList(format,CatalogId){
@querynew=$query(content,content);
@querynew[CatalogId]=@CatalogId;
//语言
@listnews=@querynew.dataPager(*,['Status>0 and CatalogId={*CatalogId}'],['Modified desc,Grade desc,ContentId desc'],10,$http.get(page,1));
@Pager...