There is a way to select comma separated data from any mysql table.


SELECT poll_id,group_concat(option_id) FROM `poll_elements`
group by poll_id


this will output as follows:


poll_id | group_concat(option_id)
1 | 3855,5098,8474
3 | 3855,9469,15677
6 | 509,3855,9469,10489

0 comments



Some Links (off programming)