davehaz
06-06-2005, 10:03 PM
Howdy all,
I am looking to put a survey(s) on my site, after a user votes, I would like to be able to pull the current results and then turn it into a graph, my question is - is there a way to count the # of fields in a database? Is this a MySQL function? Or PHP? anybody have any ideas on the best way to do this?
I was thinking to count the # of fields, to determine the number of bars in the graph. Then add up the number of answers to get the upper limit of each bar.
tia.
I am looking to put a survey(s) on my site, after a user votes, I would like to be able to pull the current results and then turn it into a graph, my question is - is there a way to count the # of fields in a database? Is this a MySQL function? Or PHP? anybody have any ideas on the best way to do this?
I was thinking to count the # of fields, to determine the number of bars in the graph. Then add up the number of answers to get the upper limit of each bar.
tia.