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

[PHP] Re: Still need help with miscount

2001-12-18 Thread Chris Lee
need more info buddy. does this query work at the mysql command prompt? show us an example, show us 10 records and accual query being exec and what the returned result is and what you think it should be. -- Chris Lee [EMAIL PROTECTED] "Fîk ì?çìsâî" <[EMAIL PROTECTED]> wrote in message [E