Re: [PHP] Array group and sum values.

2010-05-11 Thread Shawn McKenzie
On 05/11/2010 04:09 PM, Shawn McKenzie wrote: > On 05/11/2010 02:17 PM, Paul Halliday wrote: >> On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: >>> Paul Halliday wrote: On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: > Paul Halliday wrote: >> I have this: >> >> while ($ro

Re: [PHP] Array group and sum values.

2010-05-11 Thread Shawn McKenzie
On 05/11/2010 02:17 PM, Paul Halliday wrote: > On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: >> Paul Halliday wrote: >>> On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: Paul Halliday wrote: > I have this: > > while ($row = mysql_fetch_array($theData[0])) { > > $

Re: [PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: > Paul Halliday wrote: >> On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: >>> Paul Halliday wrote: I have this: while ($row = mysql_fetch_array($theData[0])) {     $col1[] = $row[0];     $col2[] = lookup($row[1]); /

Re: [PHP] Array group and sum values.

2010-05-11 Thread Jim Lucas
Paul Halliday wrote: > On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: >> Paul Halliday wrote: >>> I have this: >>> >>> while ($row = mysql_fetch_array($theData[0])) { >>> >>> $col1[] = $row[0]; >>> $col2[] = lookup($row[1]); // this goes off and gets the country name. >>> >>> I then loo

Re: [PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: > Paul Halliday wrote: >> I have this: >> >> while ($row = mysql_fetch_array($theData[0])) { >> >>     $col1[] = $row[0]; >>     $col2[] = lookup($row[1]); // this goes off and gets the country name. >> >> I then loop through col1 and col2 to produ

Re: [PHP] Array group and sum values.

2010-05-11 Thread Jim Lucas
Paul Halliday wrote: > I have this: > > while ($row = mysql_fetch_array($theData[0])) { > > $col1[] = $row[0]; > $col2[] = lookup($row[1]); // this goes off and gets the country name. > > I then loop through col1 and col2 to produce something like this: > > 52ARMENIA > 215 CANADA

[PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
I have this: while ($row = mysql_fetch_array($theData[0])) { $col1[] = $row[0]; $col2[] = lookup($row[1]); // this goes off and gets the country name. I then loop through col1 and col2 to produce something like this: 52 ARMENIA 215 CANADA 57 CANADA 261 COLOMBIA 53