File:newdetail.xmls
Method:query.getRow(columns,*where,*order)
未指定的錯誤
越界或超過范圍
newdetail.xmls
...Status>0 and CatalogId=174'],['Grade desc']);
@wx=@query.getTable(['Title,Pic'],['Status>0 and CatalogId=187'],['Grade desc']);
@query[ContentId]=$http.argv(0);
@form=@query.getRow(*,['ContentId={*ContentId}']);
@MetaKeywords=@query.scalar(MetaKeywords,['Status>0 and ContentId={*ContentId}']);
@MetaDescription=@query.scalar(MetaDescription,['Status>0 and ContentId={*ContentId}']);
@Title=@query.scalar(Title,['Status>0 and ContentId={*ContentId}']);
@query[CatalogId]=@form[CatalogId];
@prevrow=@query.getRow(*,['CatalogId={*CatalogId} and Status>0 and ContentId<{*ContentId}'],['ContentId desc']);
@nextrow=@query.getRow(*,['CatalogId={*CatalogId} and Status>0 and ContentId>{*ContentId}'],['ContentId asc']);
//上一條
$if(@prevrow[ContentId]<>$null){
@prevcontenid=@prevrow[ContentId];
@prevtitle=@prevrow[Title];
}
$else{
@prevtitle=無;
}
//下一條
$if(@nextrow[ContentId]<>$null){
@nextcontenid=@nextrow[ContentId];
@nexttitle=@nextrow[Title];
}
$else{
@nexttitle=無;
}
/...