Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Please start using mysqli_* or PDO as mysql_* is deprecated and is removed in PHP7 Commented Aug 27, 2016 at 13:38
  • @SuperDJ Ah I see, thank you for your advice. Commented Aug 27, 2016 at 13:40
  • you are trying to insert an array into a string, you need to use either implode, json_encode or serialize in order to convert from array to stirng. Moreover, when you will get the data from the database you must convert the data back to array. Commented Aug 27, 2016 at 14:11