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']);
}...
主站蜘蛛池模板:
云和县|
韶关市|
肇东市|
全南县|
万载县|
武清区|
呼玛县|
东丰县|
滨海县|
四平市|
安乡县|
鹤壁市|
邹平县|
乡宁县|
阳朔县|
吴江市|
兰西县|
安多县|
花垣县|
通城县|
成都市|
乳山市|
尼木县|
封开县|
溆浦县|
株洲县|
湘阴县|
南投县|
罗田县|
西乡县|
清原|
柳河县|
澄城县|
崇仁县|
淮北市|
涞源县|
大田县|
南充市|
巫溪县|
九江市|
青岛市|