I have two columns (groupID, memberID) in table and I execute following mysql query
select `groupID` from `tbl_groupassign` where `memberID` = 'check1';
which prints column groupID but I want to show groupID in single row with each groupID separated by comma. For example I get following result by executing above query
groupID
group1
group2
but I want show it as group1, group2