Hi there,
I have a small question:
I have a table with lots of rows in it. Of course all have a different id,
but each can be assigned to a certain category. Categories correspond
with 1 - 10.
So a row looks like this: 'unique id | 4'
What i want is to do a count how much rows belong to a certain category.
Is it possible to do the following (from 1 query)
echo $counted_rows['4'];
Which sould return the number of rows with category '4';
Or is there anything similar if this is wrong?
Any help is great!! :)
I have a small question:
I have a table with lots of rows in it. Of course all have a different id,
but each can be assigned to a certain category. Categories correspond
with 1 - 10.
So a row looks like this: 'unique id | 4'
What i want is to do a count how much rows belong to a certain category.
Is it possible to do the following (from 1 query)
echo $counted_rows['4'];
Which sould return the number of rows with category '4';
Or is there anything similar if this is wrong?
Any help is great!! :)
Comment