Hello.
I want to create array for every month. Each of them will be two-dimenional arrays. I can't get it right. What's wrong with this code ?
$i = 0 ; while ($rows = mysql_fetch_array($result)) { $mnth = $rows["month"] ; $gm = $rows["game"] ; $arc = $rows["arcadecount"] ; $array_mnth_{$mnth}["game"][$i] = $gm ; $array_mnth_{$mnth}["arc"][$i] = $arc ; $i++ ; }
Any clues on how to acive the above ? Thanks. Bij.
Do the quotes inside the [ ] have to be singles?
quotes are not the problem creators here. Any quotes will do.
Still can't get array for every month. Alternatively, this works, but not exactly i wanted. will create 3-column array.
$array_mnth[$mnth]['game'][$i] = $gm ;