You are here: Re: [PHP] array help « PHP « IT news, forums, messages
Re: [PHP] array help

Posted by Richard Davey on 10/21/12 11:21

Hello Fletcher,

Thursday, July 14, 2005, 11:33:36 PM, you wrote:

FM> while ($row = mysqli_fetch_assoc($result))
FM> $table[] = $row;

FM> but that generated this error;

FM> Fatal error: [] operator not supported for strings

The above WILL work providing that (1) $table hasn't been set
elsewhere in your script as a string, or (2) $table has been set as an
array ($table = array()) prior to being used.

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov

 

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

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