Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

user collections

Name: Anonymous 2011-12-22 0:43

let's say a user can browse an index of products, and they can add the ones they own to their "collection." naturally, there are several editions of some products, so they can select that too. what would be the best/most efficient way to store their collection in a mysql database?

i was thinking of storing a row for each user, and one of the columns would be an array of all the products' unique IDs. is this an acceptable way to do it?

Name: Anonymous 2011-12-22 1:27

I'm having trouble understanding what you're proposing to me. Would you please draw a diagram to explain your proposal?

Name: Anonymous 2011-12-22 2:27

table of users, with id
tables of products with id
table of with user id and product id, both foreign keys and shit,
specifies that user x has product y,
niggerth normal form or something

Don't change these.
Name: Email:
Entire Thread Thread List