I'm working on a t-shirt site and what I want to do is create an 'if you like this then you'll like this' box. The t-shirts are categorised across 24 categories and may fall into several categories.
I want to compare the selected t-shirt's category results with every other shirt in the db. Then order the results by closest match.
Does anyone know where I can find an example script for something like this? Or point me in the right direction? I have no real idea where to begin.
I'm guessing it's something to do with array_intersect_assoc.
It's basically an Amazon-style recommended products.
Thanks in advance.