Let me try to explain a little better:
There is a table called Products in a mySQL Database, within this table are many fields, one which is called ProductName. I want to write a script that compares all entries in that ProductName field, to each other, noting any matches.
The difficultly comes from the fact that the two things I am comparing, are basically hundreds of rows in the same column.
Hundreds of entries, but in the same field. Say I have 400 products, I want to compare the existing 400 names of those products, to themselves to find any matches.
Does that make more sense?