SV: SV: [PHP] Re: Still need help with miscount

2002-01-06 Thread Daniel Alsén
> I don't know if this is actually it, but the line > $num_vals[$i] = mysql_fetch_array($result); > seems strange to me - doesn't mysql_fetch_array return an array? > You should try > list($num_vals[$i]) = mysql_fetch_array($result); > and see if you get any improvements... No, that was not it. I

Re: SV: [PHP] Re: Still need help with miscount

2002-01-05 Thread Bogdan Stancescu
I don't know if this is actually it, but the line $num_vals[$i] = mysql_fetch_array($result); seems strange to me - doesn't mysql_fetch_array return an array? You should try list($num_vals[$i]) = mysql_fetch_array($result); and see if you get any improvements... Daniel Alsén wrote: > I have work

SV: [PHP] Re: Still need help with miscount

2002-01-05 Thread Daniel Alsén
I have worked this over in my head over the holidays and still haven´t got a solution. Can anyone help? I have a MySql table populated with numerical values from 0 to 10 in five different fields. I need a function that counts all occurances of each value, ie: 1: 12, 2: 3, 4: 74 etc... I have wor