Re: [PHP-DB] php, DB and arrays

2002-11-09 Thread Mihail Bota
did you try "select max(v) as max_v from your_table where year=..." ? and put this query in a loop for years. mihai On Sun, 10 Nov 2002, Martin Allan Jensen wrote: > Hi evryonei have a problem that i hope you can help me with. > > Here it goes! > > I have two arrays returned from my DB one c

[PHP-DB] php, DB and arrays

2002-11-09 Thread Martin Allan Jensen
Hi evryonei have a problem that i hope you can help me with. Here it goes! I have two arrays returned from my DB one called "y" adn one called "v" Togeather they hold a year(Y) and a value(V) The return from the DB looks like this: v: 10 20 40 60 320 780 890 920 y: 2002 2002 2002 2002 200