File:product.xmls
Method:query.scalar(columns,*where,*order)
沒有為命令對(duì)象設(shè)置命令。
越界或超過范圍
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']);
}...
主站蜘蛛池模板:
汾西县|
将乐县|
富阳市|
大新县|
阿图什市|
罗甸县|
珠海市|
平果县|
广南县|
专栏|
青川县|
赣州市|
桦川县|
通榆县|
宜君县|
班戈县|
枣阳市|
靖江市|
万全县|
安阳县|
湄潭县|
天峻县|
马尔康县|
虞城县|
吉木萨尔县|
佛冈县|
麦盖提县|
即墨市|
安阳县|
牙克石市|
霍林郭勒市|
安龙县|
咸宁市|
皮山县|
海兴县|
南溪县|
道孚县|
泉州市|
贺州市|
社旗县|
新乡市|