File:news-details.html
Method:query.update(*columns,*where)
未指定的错误: E_FAIL(0x80004005) update jxcontent set [Click]= 2128 where [ContentId]=134;
数据库执行错误
xmls/news.xmls
...=$http.get(id);
@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 pageDownload(){
@format=[#
<li><a target="_blank" href="{*FilePath}">
<p class="reb">{*Title}</p>
<p class="rec">下载</p>
</a></li>
#];
@querycata=$query(catalog,content);
@querydown=$query(download,content);
@CatalogId=$http.get(cid,27);
@querydown[CatalogId]=@CatalogId;
@querycata[CatalogId]...