JREAM Posted July 16, 2009 Share Posted July 16, 2009 Hey guys, do you know why this produces a fatal error? while ($query = mysql_fetch_array($result)) { $edit[] = $query; } What is the solution to this? Link to comment https://forums.phpfreaks.com/topic/166216-solved-fatal-error-operator-not-supported-for-strings/ Share on other sites More sharing options...
JonnoTheDev Posted July 16, 2009 Share Posted July 16, 2009 Because the $edit variable must contain a string. Use another variable or change to an array. $edit = array(); while ($query = mysql_fetch_array($result)) { $edit[] = $query; } Link to comment https://forums.phpfreaks.com/topic/166216-solved-fatal-error-operator-not-supported-for-strings/#findComment-876505 Share on other sites More sharing options...
JREAM Posted July 16, 2009 Author Share Posted July 16, 2009 Ah I see thank you Link to comment https://forums.phpfreaks.com/topic/166216-solved-fatal-error-operator-not-supported-for-strings/#findComment-876512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.