File:product.xmls
Method:query.scalar(columns,*where,*order)
沒有為命令對象設置命令。
越界或超過范圍
product.xmls
...rom newscontent where UserId=1 order by Grade desc,Modified desc']);
@product=@query.getList(['ContentId,Title,Pic,Subtitle,CreateDate,Grade'],['Status>0 and {#in(CatalogId)} {?} and {#like(%,Model,%)} '],['Grade desc,{#idn(0)} desc'],15,@count,@index);
}
}
$if(@t<>1&&@t<>0&&@t<>2){
@query=$query(content,news);
@query[CatalogId]=$http.argv(0);
@query[len]=$http.argv(1);
@query[Tag]=1;
@len=@query[len];
@cataid=@query[CatalogId];
@sql=['Status>0 and CatalogId={*CatalogId} '];
@count=@query.scalar(['count(*)'],@sql);
@index=$http.get(page,#n,1);
@list=@query.getList(*,['Status>0 and CatalogId={*CatalogId}'],['Grade desc'],18,@count,@index);
@product=@query.getList(['ContentId,Title,Pic,Subtitle,CreateDate,Grade'],['Status>0 {?} and CatalogId={*CatalogId}'],['Grade desc, {#idn(0)} desc'],15,@count,@index);
@pager=$util.pager(15,@count,@index,page,3);
@contenList=@query.dataList(['select * from newscontent where UserId=1 order by Grade desc, Modified desc']);
}...
主站蜘蛛池模板:
渑池县|
阿勒泰市|
海阳市|
磐石市|
新丰县|
炎陵县|
玉林市|
晋江市|
台北市|
丽江市|
沐川县|
尤溪县|
广昌县|
青河县|
托里县|
武清区|
安乡县|
通渭县|
大埔区|
鄂尔多斯市|
水城县|
靖西县|
铅山县|
南投市|
织金县|
上高县|
德令哈市|
佛冈县|
疏附县|
康保县|
龙山县|
康马县|
洪泽县|
正阳县|
安仁县|
沈阳市|
扎囊县|
贵定县|
顺平县|
图们市|
谢通门县|