"Bastian Vogt" <bastian.vogt@komtel.net> wrote in message 3DF5D1EB.56917222@komtel.net">news:3DF5D1EB.56917222@komtel.net... > Hi, > > I'ld suggest this: > > // inside your loop > $array[$year] += $value; > > HTH, > Bastian > Lets say $year is 2000 There is not defined index 2000 at $array. It is going to be undefined offset. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php