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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to