astro I will help you out a little bit here
here is the query right now
SELECT h.* , t.tee_color_id, t.yards, t.hole_id, t.handicap, c.color
FROM hole h, tee t, tee_color c
WHERE h.course_id = " . $course . "
AND t.hole_id = h.id
AND t.tee_color_id = c.id
ORDER BY c.color, hole_num
the $course variable is passed along and already localised at this point
basically the way it needs to be outputted is like a golf scorecard basically
hole number 1-18
red yardages 1-18
white yardages 1-18
blue yardages 1-18
however here is where the tricky part for me is I only want to show the blue(or red, or white) if there are entries in it and let's say it only has 9 entries then I want the other 9 <td>'s to show up empty to keep formatting of the table complete.
Does that make it any clearer?