within each '<th>' cell in a row below the heading ($row_getResults['heading']). The queried content displays correctly and is organized just fine. What I need help is to not have the '<th>' repeat if the content falls under the same $row_getResults['heading']. I only want one '<th>' row per table of results.

The following results are displayed with one table:Place Name City Bib No. Age Overall Time Pace1 Scott Mac Sunnyvale, CA 12 9 12 3:00.3 3:00/MPlace Name City Bib No. Age Overall Time Pace2 Jerry Marc Los Angeles, CA 11 12 9 4:12.1 4:12/M

Remove the HTML you don't want to be repeatedly printed out of the loop. Just leave the row and cells echoing the row results inside the loop.

toad78
—
2010-03-10T06:44:34Z —
#3

I've tried that before, but didn't get the results I wanted.

The attached (yukky.jpg) is what I normally get. Trying to get the '<th>' out of the loop results in the other image attached (even-more-yukky.jpg); obviously not the results I'm shooting for.

yukky.jpg displays the correct results in the correct order with the correct headings (FEMALES 8 AND UNDER, MALES 8 AND UNDER, etc.), but I don't want the repetitive <th> (Place, Name, City, etc.) to display unless it's listing a new set of records under a new heading.

system
—
2010-03-10T07:03:20Z —
#4

This question was answered thousand times already.Add a condition inside of your loop.To display a new heading only if goes "a new set of records", whatever it meant

toad78
—
2010-03-10T15:23:32Z —
#5

Not all of us are as affluent in PHP, as you are, OH MIGHTY ONE. We come here to get assistance, not feel like puny idiots. Why do you think we come here? To learn!

Also, some of us have physical issues that, sitting in front of a computer for long periods of time, tends to cause blindness and pain. So, instead of being rude, have you considered pinpointing me in the right area (such as a link) of where I can find the answer, or just help me instead?

Not all of us can sit in front of 120+ search results in a forum and search for the answer.

hash
—
2010-03-10T20:21:06Z —
#6

It looks like your already doing it for the headingsif ($row_getResults['heading'] !=$heading)It's the same for the th: if heading changes then print table header

toad78
—
2010-03-10T20:49:15Z —
#7

I assumed that it was something more complex than that. I'll see what I can come up with and come back. Thank you for the suggestion, hash.

toad78
—
2010-03-10T22:01:58Z —
#8

hash said:

It looks like your already doing it for the headingsif ($row_getResults['heading'] !=$heading)It's the same for the th: if heading changes then print table header