File:news-details.html
Method:query.update(*columns,*where)
数据库“sq_hechun”的事务日志已满,原因为“LOG_BACKUP”。 update jxcontent set [Click]= 2790 where [ContentId]=89;
数据库执行错误
xmls/news.xmls
...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 prevnextG(){
@query=$query(content,content);
@query[AreaId]=$shell[AreaId];
@query[ContentId]=$http.get(id);
@query[CatalogId]=$http.get(cid);
@prevrow=@query.map(*,['CatalogId={*CatalogId} and AreaId={*AreaId} and ContentId<{*ContentId}'],['ContentId desc']);
@nextrow=@query.map(*,['CatalogId={*CatalogId} and AreaId={*AreaId} and ContentId>{*ContentId}'],['ContentId a...