I have a database in which my parent_id same for many rows. So I wanted to write a code which groups all similar images in a paragraph. How can I do this.

Member Avatar for diafol

In a paragraph? What info do you want in the paragraph? image filename, title or description? Have a look at GROUP BY maybe. How far have you got with the code yourself?

So far I got this far.

It now lists all files in an order but still does not group them as I want them to.

code is helpful, screen shots arent

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.