Error in pagination of codeigniter 1

前端 未结 3 1107
鱼传尺愫
鱼传尺愫 2021-01-25 07:33

In model/rci_model.php

public function record_count() {
return $this->db->count_all(\"produk\");
}

public function fetch_countries($limit, $start) {
    $         


        
3条回答
  •  醉梦人生
    2021-01-25 08:27

    Try this one. You wrong when using limit.

    $query=$this->db->query("SELECT * FROM produk WHERE id_kategori='Men' order by nama_produk ASC LIMIT $limit, $start");
    

提交回复
热议问题