|
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]
|