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');
最佳答案