Image

Imagecarefreespirit wrote in Imagephp

Still a no-go with all the code that was given yesterday. Maybe I need to clarify better what it is that I am trying to do.

We are doing a survey where the results for each question can be 0-5. Each result is stored in a table in a column. The first table I am using has columns of retirement1, retirement2, retirement3, retirement4, retirement5, and retirement6 (each holding a number between 0 and 5) I need to look in column retirement1 and count how many 0's there are, how many 1's there are, how many 2's there are, etc... so that I get a result similar to:

retirement1:
0=7
1=4
2=9
3=2
4=11
5=1

And I need to do this for each column in that table. So far, it seems that I am getting totals of columns, but not totals of numbers in the column. If anyone could help me, I would really, really appreciate it!! Thanks!