原生sql没有select了如何使用page函数进行分页

浏览:4158 发布日期:2014/03/25 分类:求助交流
$sql="select comment,nick_name,h_comment.comment_id,price,quality,response,ontime,profession,score,comment_content,continue_use,comment_time,ding,cai
from h_customerinfo,h_comment left join h_commentcom on(h_comment.comment_id=h_commentcom.comment_id and h_commentcom.user_id=$usid)
where(h_comment.supplier_id=$supid and h_customerinfo.user_id=h_comment.user_id) order by h_comment.comment_time desc";
$model = new Model();
import("ORG.Util.Page");
$commentList=$model->query($sql)->page($page.',3');
最佳答案
评论( 相关
后面还有条评论,点击查看>>