How to group product by category? |
The CodeIgniter Active Record Class offers a method called group_by which you can use to query a table with the results representing a grouping of the records in the table.
Code: $this->db->select("COUNT(id)"); You should probably read the mysql documentation on 'group by'. Or if you are using some other DBMS, check out its documentation on group by. |
Messages In This Thread |
How to group product by category? - by avinashizhere - 01-27-2015, 04:21 AM
RE: How to group product by category? - by sneakyimp - 01-28-2015, 10:48 AM
|