[eluser]Einspruch[/eluser]
I hope the day comes soon enough when I can answer these types of questions instead of ask of them! :-)
I have data that looks like this in the database:
Code:
title A...datapoint 1
title A...datapoint 2
title A...datapoint 3
title A...datapoint 4
title B...datapoint 1
title B...datapoint 2
title B...datapoint 3
title B...datapoint 4
How can I output it so it looks like this:
Code:
<h2>title A</h2>
datapoint 1<br />
datapoint 2<br />
datapoint 3<br />
datapoint 4<br />
<h2>title B</h2>
datapoint 1<br />
datapoint 2<br />
datapoint 3<br />
datapoint 4<br />
Basically I need a loop inside of a loop. But I can't figure out how to code the logic that says if the title is the same, go to the next record, if not stop and go to the first record of the next title.
Help! :-)