incrememnting an array

From: Date: Fri, 20 Sep 2002 06:19:57 +0000
Subject: incrememnting an array
Groups: php.db 
Request: Send a blank email to php-db+get-21863@lists.php.net to get a copy of this message
hi all this is what I would like to do. I have a dynamically generated array from a database and I wnat to do a piechart from it . for example the array would hold (a,b,c,d,e,f,g,h) sometimes more sometimes less . I need to get the values of a,b,b,a+b,a+b,a+b+c,a+b+c,a+b+c+d, and son on these are for the values of the angles for the pie chart on imagefilledarc(). And for the life of me I can't figure out how to do it. any help would be greatly appreciated John Coder

« previous php.db (#21863) next »