I'm working on something that requires me to store an array of ids that correspond to each user.
Each user is required to choose a number of items (min. 1), each with a unique id. I have an array of these ids but I'm not too sure how I should store them in the db.
Right now, I'm using php serialize() to store the array but I'm finding this to be inefficient as I have to query the data with php instead of sql.
I'm looking for a better way to do this - thanks!