Retrive data from table with has Group_concat function

妖精的绣舞 提交于 2019-12-12 02:23:35

问题


This is Result of two table using GROUP_CONCAT() for columns content_ids and content_titles and this data is separated with a ',' separator

What i need is?

Using php the values must be stored in a array and should print at using a loop.

can anyone help me? thanks.


回答1:


Retrieve your data usual way.
Then, after reading particular comma-separated field, use explode() to get an array out of it.
That's all



来源:https://stackoverflow.com/questions/15334632/retrive-data-from-table-with-has-group-concat-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!