Posted by Steve on 02/09/07 20:34
"peter" <submit@flexiwebhost.com> wrote in message
news:eqigpq$gc7$1@aioe.org...
|> $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;
NOPE...that won't work. it should be:
$group[$record['PUBLISHER]][] = $record;
Navigation:
[Reply to this message]
|