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']);
}...
主站蜘蛛池模板:
康马县|
奉化市|
宕昌县|
原阳县|
彰化县|
汝州市|
礼泉县|
明星|
集贤县|
枞阳县|
友谊县|
舟山市|
安新县|
佛冈县|
仁怀市|
夏邑县|
军事|
博爱县|
淳安县|
陇南市|
兰溪市|
伊宁市|
渑池县|
潞城市|
名山县|
读书|
临清市|
万安县|
永安市|
天峨县|
镇宁|
启东市|
吴堡县|
中宁县|
维西|
乐清市|
遵义市|
云南省|
钟山县|
准格尔旗|
泰安市|