Hi all,
We are developing a simple e-commerce store for a customer in PHP, and we could do with some advice about how to handle the requirements inside MySQL.
The customer sells mobile phone accessories (batteries, faciers etc).
Each product can have a small, or potentially massive, range of phone model compatibility. So in the admin area he needs to be able to select which mobile models each product is compatible with.
On top of this, he also needs to be able to add new phone models, and remove old phone models. So the system needs to be very dynamic.
On the front end we need to be able to search for products, by the phone model. i.e. I am looking for a 'battery' for an 'Nokia N70'. So there obviously needs to be various relationship in the database, however the dynamic nature of this is more then we used to fulfilling.
At this point in time we have two tables.
One contains all the product information:
fldProductId
fldProductCategory
fldProductName
fldProductPrice
fldProductDescription
The other contains the current list of Phones:
fldPhoneID
fldMake
fldModel
We would appreciate thoughts on the best approach, thanks Ben & Josh