I have a table with the following structure, let's name the header with letters:
A | B | C | D | E
I would like to perform 5 different queries to my mysql server and I would like to fill the whole table with them in the following way:
The first result-set to complete the whole A
column, then with the other result I would like to complete de column B
, and then the 3 that left.
If I use a for statement, the for fills them in that way: After I echoed the table headers, it begins filling the SECOND cell of column A
, then the SECOND cell for column B
, then the SECOND cell of C
until it completes the whole row.
And what I do want is to complete the first cell of column A
, then the second cell of column A
, then the 3 cell of column A
and so on.
When I completed the whole column. I would like to complete the column B
, then C
, D
, and E
.
I hope I was clear enough.
I would like to implement this with PHP and using a for loop.