Outputting DB results in Column/Rows not just rows
Posted: Fri Oct 24, 2003 12:39 pm
Hey there, got a question.
Usually when I output results its with a echo in a while loop that adds a new row constantly to the table.
However now I need it to output it so that theres records going across 3 columns and repeating down.
So instead of an HTML Table that outputs rows like
Record1
Record2
Record3
Record4
Record5
Record6
it'd be output as
Record1 Record2 Record3
Record4 Record5 Record6
Record7 Record8 Record9
in a table.
Anyone able to tell me how i'd go about on this?
Usually when I output results its with a echo in a while loop that adds a new row constantly to the table.
However now I need it to output it so that theres records going across 3 columns and repeating down.
So instead of an HTML Table that outputs rows like
Record1
Record2
Record3
Record4
Record5
Record6
it'd be output as
Record1 Record2 Record3
Record4 Record5 Record6
Record7 Record8 Record9
in a table.
Anyone able to tell me how i'd go about on this?