Your question is quite incomplete, but I can give you a hint on DB design.
You can design your tables like this:
Table Product (product_id, other product fields... )
Table Component (component_id, other component fields... )
Table Product_Component (product_id, component_id)