File:new-b.html
Method:query.row(value,*columns)
“=”附近有语法错误。
select top 1 * FROM cocontent WHERE ContentId=
数据库执行错误
news.xmls
..."color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">Sorry, no data currently!</div>'];
@Pager=$empty;
}
$return($empty);
}
//新闻详情
$sub viewNews(){
@querycata=$query(catalog,content);
@querycontent=$query(content,content);
@ContentId=$http.get(id,0);
@CatalogId=$http.get(cid);
@querycata[CatalogId]=@CatalogId;
@AreaId=$shell[AreaId];
@querycata[AreaId]=@AreaId;
@cataname=@querycata.scalar(CatalogName,['CatalogId={*CatalogId} and AreaId={*AreaId}']);
@rowcontent=@querycontent.row(@ContentId);
@Modified=$empty;
$if(@rowcontent<>$null){
@Modified=@rowcontent[Modified];
@Modified=$datetime.format(@Modified,yyyy-MM-dd);
@Click=@rowcontent[Click];
@querycontent[ContentId]=@ContentId;
@querycontent[Click]=(@Click+1);
@querycontent.update();
}
$else{
@rowcontent=$map();
@rowcontent[Title]=无数据;
}
$return($empty);
}
//电子期刊详情
$sub helpviews(){
@querycontent=$query(content,help);
@ContentId=$http.get(id,0);
@rowcontent=@queryco...