I’m having a little trouble here… I have a table with a bunch a few fields, and I’m using PHP to display the data on a page. However, there are a few rows with matching values in certain fields, and I’m trying to prevent those from happening. The entire rows aren’t duplicates, just certain fields of those rows.
For example, let’s say I had a table with the fields ‘name’ and ‘index’ (very simplified). If I wanted to go through and display every row of this table, but NOT the rows where that name has already been displayed in another row (even if the index is different), how would I do that? Is this something I would do in the MySQL query, or some sort of PHP array function?
Thanks!