The query is just a where $id = some particular row id #.
The database itself is just a table with a data1,data2,data3,data4.......data250 fields in it.. Each one will have a value based on input from this dynamic table that I have built. So, from that.. it should output like:
Top Header 1 Top Header 2 Top Header 3
Side Header 1 Data1 Data2 Data3
Side Header 2 Data 4 Data 5 Data6
etc... but instead of outputing the datafields as such.. it is either doing all of the data fields across one row (where side header 1 is) out to the full length of the 200+ fields.. Or.. with the code in this post, it is simply putting data1 thru 15 for each row instead of starting at 16 on the second row and 31 on the third row.. etc. The code you just posted is pretty much what is already there.
for($i = 0; $i < $rows2; $i++)
{
$table_side = "build_tp_custom_case_header_side$i";
$header_side12 = $tp_custom_caseDetail->$table_side;
$header_side13 = $header_side12[0];
echo "<tr><td>$header_side13</td>";
//Loops thru the data fields making a column for each field up to the column specification.
for($j = 0; $j < $columns2; $j++) {
$table_data = "build_tp_custom_case_data$j";
$data12 = $tp_custom_caseDetail->$table_data;
$data13 = $data12[0];
echo "<td>$data13</td>";
}
//end data
}
//end side headers
is the same thing. π