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']);
}...
主站蜘蛛池模板:
双流县|
平湖市|
牙克石市|
冕宁县|
莱州市|
尖扎县|
莫力|
广元市|
北川|
孝昌县|
霸州市|
类乌齐县|
保德县|
鹿泉市|
辽阳县|
通许县|
衡水市|
林州市|
南涧|
郧西县|
宜川县|
古交市|
绥德县|
正宁县|
海安县|
陈巴尔虎旗|
澄迈县|
荆州市|
桃园市|
肥乡县|
公安县|
江北区|
锦州市|
保山市|
怀化市|
三明市|
邵东县|
华池县|
肇源县|
邯郸县|
虎林市|