I like to develop a shopping cart website with multiple products. (ex.: mobile phone, furniture etc.,) here mobile phone specification will cover
- size of display
- memory
- operating system
- camera etc.,
but for furniture - its specification is entirely different from above electronic product.
- type of wood
- color
- weight
- shape
- glass or mat finish etc.,
My question is: how to handle a common database-table for product specification ? each & every category of product & its spec will be differ - so how to have a common table ProductSpecificationTable ?
I searched many site including google.. but cant able to get the perfect soultion. Please help me to move to next step.
Ask yourself the question: How can I accomplish this kind of database? First of all you need products.. Every product has to be in some kind of category and every category has to have his own properties. So, you've to create a product table with unique id and every product needs a category id. At this moment it is time to link from your property table to your category table(by id) and to set the values you need a 'property_value' table.
I hope you will understand my explanation otherwise just ask :)