codeigniter get num_rows
$this->db->get('your_table_name')->num_rows();
- $this->db: Refers to the CodeIgniter database class, allowing you to access the database.
- get('your_table_name'): Retrieves the data from your specified table.
- num_rows(): Returns the number of rows in the result set.