I’m working on making a shopping cart using Php and MySQL. Building a Custom PC shopping cart…
I’m getting the pages put together and putting info into the database AND KNOW I have been hit with a major problem. (I provided an image below so you can see the structure)…
When I start pulling components into the pages, I will get every component for every product…
What I need is… Some components for certain PC products. So some PC products may have the same components as other products, but it may only have a few.
I’m stuck with a many to many relationship here. I cant figure other how to fix it, or maybe put something in between them to correct it. (I could assign each component to it’s own PC product, but if that component is for ALL of the PC products, I will have to insert that SAME data 5 to 10 times AND then it would be a one to one relationship).
This is so frustrating. Can anyone help me figure this out. Or please give me some pointers.