knowj
10-18-2007, 12:37 PM
Basically im building an e-commerce system and each product will have multiple colours and each colour will have multiple sizes also each size will have a stock value assigned to it.
this is roughly how i've planned to do this currently:
product table:
ProductID
colours table:
ColoursID
ProductID [foreign key]
ColourName
Imageurl
sizes table:
Uniqueid (a completely unique id for each product which will work when putting products into the basket)
ColoursID
SizeName
SizeValue
StockValue
Does anyone have any knowledge on efficiency of PHP/MySQL?
As the other option would be to use serialized arrays and a csv of sizes which would also make the basket process more complex (more processing power on the PHP side of things but less on the database).
footnote:
The reason i have decided to work this way is because they are different sizes and different size measurements (s,m,l etc... 8,10,12 etc...)
All opinions are greatly appreciated
this is roughly how i've planned to do this currently:
product table:
ProductID
colours table:
ColoursID
ProductID [foreign key]
ColourName
Imageurl
sizes table:
Uniqueid (a completely unique id for each product which will work when putting products into the basket)
ColoursID
SizeName
SizeValue
StockValue
Does anyone have any knowledge on efficiency of PHP/MySQL?
As the other option would be to use serialized arrays and a csv of sizes which would also make the basket process more complex (more processing power on the PHP side of things but less on the database).
footnote:
The reason i have decided to work this way is because they are different sizes and different size measurements (s,m,l etc... 8,10,12 etc...)
All opinions are greatly appreciated