Posted by peter on 02/09/07 19:07
> $group = array();
> foreach ($records as $record)
> {
> $group[$record['PUBLISHER'][] = $record;
> }
>
> I keep getting the following output in my browser when attempting this.
>
> Parse error: syntax error, unexpected ';', expecting ']' in
> /usr/local/www/sweep/results/tables.php on line 43
The error message is pretty precise here. you have 1 more opeing [ than
closing ]. Maybe the line should be:-
$group[$record]['PUBLISHER'][] = $record;
Navigation:
[Reply to this message]
|