I want to do something similar to this:
http://www.dimarzio.com/pickup-picker
My question includes a concept, not some specific code on how to accomplish this.
For example, we sell violins, and we want the user to enter information about their playing style and give them the three best violins based on their recording. This is the data that they gave me:
So, if the user enters Expert, Hard, Rock and Dark, I get data sets from the violin, consisting of: Cannon, Soil, Ysaye, K.Joseph, Heifetz // Cannon, Kreisler, Soil, Heifetz // Kreisler, disable, Vieuxtemps // Cannon, disable, Plowden
Of these, I need to display the user three best options for them. Cannon is listed in 3 of 4, so this should be No. 1. Now there are three more violins that meet two of the four criteria. Soil, Chrysler and Daisy. To expand this to two options, I would think that questions should be ranked according to importance. For example, the tone is most important, followed by the bow style, musical genre and skill level. Based on this rating, the program should choose disable and Kreisler.
I'm not quite sure how to approach this. Since this data will not change frequently, can it attract a database? Should information be stored in a multidimensional array? Once the data is in the array, whether from the database or not, how should I program the logic to examine the arrays in order of importance and capture the violins that are most important?
Any help is much appreciated! I thought it would be easy until I started thinking about it!