Tuesday, 20 August 2013

Best way to make favoruites/related content in tables?

Best way to make favoruites/related content in tables?

Sorry if my question is not properly formulated, i don't know exactly how
to ask it. I'm looking for a good way for example to save favourite images
for a specific user in the database. Or if i have a movie, i want to
display related movies, you get the idea. I don't know how to do it on a
database level (phpmyadmin). My idea so far is if i have a table named
Users, i add a column in it named Favourites, in which i enter every ID or
Name of the favourited item. The problem is that the content in this
column may grow a lot more than i expect, and i don't fee this is a good
way to do it. So how do i go about this?

No comments:

Post a Comment