From this table
[ id - title - content - class]
[ 1 - t1 - p1 - 1 ]
[ 2 - t2 - p6 - 1 ]
[ 3 - t3 - p5 - 2 ]
[ 4 - t4 - p8 - 3 ]
How can i SELECT each class distinctly and under of it the title and content in this HTML
<div>
<div>Class: 1</div>
<div>
<div>t1, p1</div>
<div>t2, p6</div>
</div>
<div>Class: 2</div>
<div>
<div>t3, p5</div>
</div>
<div>
<div>Class: 3</div>
<div>
<div>t4, p8</div>
</div>
<div>
</div
Please use this to relate a hint about the modification of the answer. https://stackoverflow.com/a/43507106/7490349