此代码由Codeigniter编写,位于models文件夹中 我需要添加
<div class="gallery-1-main-info">
<p class="grid-eng-title">Ruksat Title</p>
<p class="grid-hin-title">Ruksat Title</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim </p>
</div>
以下代码。我把它放在哪里?型号代码在这里
$this->db->limit($limit,$offset);
答案 0 :(得分:0)
订单并不像这样做
$this->db->where('comments.product_id', $product_id);
$this->db->select('comments.comment,comments.ratings,comments.comment_users_id,comment_users.name');
$this->db->from('comments');
$this->db->join('comment_users', 'comment_users.id = comments.comment_users_id');
$this->db->join('product', 'product.product_id=comments.product_id');
$this->db->order_by('comments.id', 'DESC');
$this->db->limit($limit,$offset); //here added
return $this->db->get()->result();