Re: array help

From: Date: Thu, 14 Jul 2005 22:46:52 +0000
Subject: Re: array help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-218723@lists.php.net to get a copy of this message
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

« previous php.general (#218723) next »