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? Quote 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; } Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.