array with two dimensions
| From: | Lars Rasmussen | Date: | Mon, 17 Feb 2003 15:27:47 +0000 |
| Subject: | array with two dimensions | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-25688@lists.php.net to get a copy of this message | ||
Hi all,
Got a little problem here,
I have a mysql query that looks like this
SELECT SUM(value) as value, YEAR(dileveret) as year FROM table GROUP BY
YEAR(dileveret)
It works just fine, but i need to make a array that can could do
somthing like this (know it doesent work)
$ALL_VALUES[$year] += $value;
The script is running the script up to 100 times to get all the specific
data's, i hope that you know a way that i can hold the values, and year
and later print one value for each year..
THANKS A LOT!
Regards
Lasse (newbie)