File:product.xmls
Method:query.scalar(columns,*where,*order)
沒有為命令對象設(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']);
}...
主站蜘蛛池模板:
娄烦县|
漯河市|
白银市|
伊通|
溧水县|
伊吾县|
青阳县|
突泉县|
开远市|
深圳市|
衡阳县|
东安县|
象州县|
甘南县|
台湾省|
大名县|
和顺县|
静乐县|
万源市|
桃江县|
简阳市|
塔河县|
舟山市|
驻马店市|
喀喇沁旗|
同江市|
恩平市|
苍南县|
紫阳县|
湖南省|
政和县|
和田市|
黔西|
富蕴县|
青川县|
朔州市|
阿尔山市|
虎林市|
铜山县|
昌吉市|
姜堰市|