Hi,
I'm new to PHP and I have a question that I think has a simple answer
but I just can't figure it out so I'm really hoping that one of you
gurus can help me out.
I'm trying to return data from mysql database. I have over a thousand
records and each record has a "type" field with values ranging from 1
to 9.
I'm setting up an html table that has 9 cells and all I want to do is
count the total amount of types. For example, there are 140 records as
type 1, 300 records as type 2 etc.
Do I need to do 9 database querys or can this be done with one query?
Any and all help is appreciated!