Edit 1 0 2 1 0
Edit 1 0 2 1 0
Edit 1 0 2 1 0
Edit 1 0 2 1 0
Edit 1 0 2 2 0
Edit 1 0 2 2 0
Edit 1 0 2 2 0
Edit 1 0 2 2 0
Edit 1 0 2 3 0
Edit 1 0 2 3 0
Edit 1 0 2 3 0
Edit 1 0 2 4 0
Edit 1 0 2 4 0
So there is the data.
Disregard the EDIT column.
So what I have is heat_id swimmer_relay_order meet_id event_id swimmer_id in a table called HEATS.
I have another table of events...the common thread is event_id.
What I want to do is print out each event in lets say a DIV.
In each DIV which I'm looping through the events..
I need to show each HEAT with 3-6 swimmers in each.
SO
DIV EVENT
DIV HEAT
DIV SWIMMER1
DIV SWIMMER2
etc
/DIV HEAT
/DIV EVENT
So I'm not sure how to line everything up. I can join the tables however it gives just X number rows of data. and I'm not sure how to split it up.