Question and answer is powered by AnsPress.io
I am new in codeigniter framework, I want to count all rows from database table. help me.
You can count of number of rows, you can try this code
$data = $this->db->query('SELECT * FROM my_table'); echo $data->num_rows();
I hope it’s help for you, Thank you.