这是我的代码和注释行中的问题。
public function sonuc()
{
$config['total_rows'] = 5 //i want to set here count of result instead of digit. count($data['sonuc']) does not work.. what will i do?
$config['per_page'] = 2;
$data['sonuc'] = $this->emlak_model->arama(
$config['per_page'],
$this->uri->segment(3,0),
$this->input->post('semt'),
);
}
如果我用数字手动执行,分页将起作用,但我想自动获取查询的总行,我该怎么办?谢谢。