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']);
}...
主站蜘蛛池模板:
浦县|
岐山县|
乌兰浩特市|
冕宁县|
大港区|
田东县|
河北省|
甘孜县|
宁城县|
桐乡市|
突泉县|
马边|
郓城县|
方山县|
孟村|
卓尼县|
巨鹿县|
桂平市|
通辽市|
灌云县|
西盟|
康马县|
崇阳县|
彭阳县|
塘沽区|
鹿泉市|
威信县|
和静县|
曲阜市|
元谋县|
崇阳县|
潞西市|
额敏县|
巧家县|
榆中县|
上犹县|
洛浦县|
龙川县|
鞍山市|
云霄县|
元阳县|