I created two tables Category and Products for my shopping cart database. Should I build a third table CategoryProduct and save both the ID's of category and Products in it or have a column in the product table to save the category to it.
I ask because I need to display the products, category wise. Please guide or show me an example.