say I want to put multiple values in a mysql table field and separate them with some character, lets say "~".
For example, i want to store this information in the table field "items":
"shield~sword~magic meter~boots"
Now how would I recall that field and set each value (separated by the ~) to an array?
Also if the person edits that field and tries to add "shield" to the array, how would I make sure they don't do that if it's already in the array?
(example...they try to buy the shield again, yet it denies them because they already have it)
And if they don't have the item...how would I make it so it get's added to the array?
And how would I remove an item from the array incase the user throws away the item?
(example, they sell the item back to a person, so it would remove the item from the list, no matter what location it was in the list)
Are arrays the right things to use, or is there another function I should use?