CookieMonster94 Posted November 25, 2013 Share Posted November 25, 2013 Currently I have a table storing additional information. Each record can have multiple entries. I am able to retrieve all the entries for a specific record and display them on screen although the column name duplicate itself e.g. Additional info: Lorem ipsum dolor sit amet, consectetur Additional info: Lorem ipsum dolor sit amet Additional info: Lorem ipsum Could anyone offer me a suggestion as to how I could overcome this? Any help would be much appreciated. Link to comment https://forums.phpfreaks.com/topic/284260-how-to-remove-duplicate-column-names/ Share on other sites More sharing options...
iwpg Posted November 25, 2013 Share Posted November 25, 2013 If you are using SQL, how about "Group By"? select name from table GROUP BY name http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html Link to comment https://forums.phpfreaks.com/topic/284260-how-to-remove-duplicate-column-names/#findComment-1459987 Share on other sites More sharing options...
requinix Posted November 25, 2013 Share Posted November 25, 2013 So don't duplicate the label: print it once and then print out all the additional information you found. Link to comment https://forums.phpfreaks.com/topic/284260-how-to-remove-duplicate-column-names/#findComment-1460005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.