I have a database with the fields type1, type2, type3, type4 all the way up to type19, along with other fields. What I am trying to do is to get all the fields from those rows and then only echo the fields which are not duplicates.
I have tried using select distinct type1, type2 etc from products but do not know the php code to put all the fields ($_row['type1'] $_row['type2'] etc) into a single variable and then echo all the distinct values from that variable. Does anyone have any suggestions?