Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

count_all() Query in Codeigniter

codeigniter mysql
count_all() Query in Codeigniter

The count_all() method returns the number of rows in a table satisfying the criteria specified in the WHERE clause. It sets the number of rows or non NULL column values.

Permits you to determine the number of rows in a particular table. Submit the table name in the first parameter.

echo $this->db->count_all('tbl_user');  
// Produces an integer, like 25


Html code work in comment box

Related Post