I have two tables imagesgroup
and images
imagesgroup
has following fields id
and group_name
images
has following fields id
,image_name
and category
in which we store imagesgroup.id
Now i want to show all image groups along with number of images for each image group.
i.e i want to display something like this
group_name | no. of items in that group
home |10
Office | 5
Party | 0
please help me out thanks a ton in advance.