You are here: Re: PHP5 Dom XML dynamic Table Generation « All PHP « IT news, forums, messages
Re: PHP5 Dom XML dynamic Table Generation

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация