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']);
}...
主站蜘蛛池模板:
巴南区|
五寨县|
肇源县|
法库县|
东丰县|
甘肃省|
丰原市|
铜川市|
泌阳县|
黎川县|
阳谷县|
灵武市|
沙洋县|
龙里县|
炎陵县|
肇州县|
黎平县|
崇左市|
黄大仙区|
商河县|
福州市|
普宁市|
柘荣县|
珲春市|
濮阳县|
东港市|
元朗区|
平谷区|
鱼台县|
乃东县|
汽车|
张家港市|
邵东县|
乐山市|
平度市|
五原县|
桂平市|
行唐县|
尉氏县|
墨脱县|
舟曲县|