I am using this code to generate a table which will subsequently be modified to upload data to a mysql database.
<?php
$start_loc_number= 1 ;
$start_loc_alpha= 'A' ;
$end_loc_number= 10 ;
$end_loc_alpha= 'J' ;
$out = '';
$out .= '<table border = 1 bordercolor="#FF0000">';
for($tr='A';$tr<=$end_loc_alpha;$tr++)
{ $out .= "<tr>";
for($td=1;$td<=$end_loc_number;$td++)
{ $out .= '<td BGCOLOR="#99CCFF">'.$tr.$td.'</td>
<td id="sampleID" contenteditable="true"> sampleID</td>
<td id="volume" contenteditable="true"> volume</td>' ;
}
$out .= "</tr>";
}
$out .= "</table>";
echo $out;
?>
At the moment the table generates 3 cells per iteration in 3 column cells,
| coordinates | sample ID | volume |
My question relates to how the php code can be altered so to generate a table where the coordinates cell can be arranged as a rowspan over the sampleID and volume cells positioned in 2 rows with the sample ID over the volume cell
| | sample ID
| coordinates |------------
| | volume