I have a mysql db, and a php program that uses the following query to find all duplicate listings...
SELECT *, a.ID from Products as a, Products as b where a.ProdDesc = b.ProdDesc and a.ID != b.ID AND a.ID > b.ID order by a.ProdDesc, b.ProdDesc
But, does anyone how, with that query or otherwise, I can sort the results like so: product, matches other product. Basically, display what results matches what other result?
Right now, it just displays all matches randomly down the page.