I have this table
<table name='test'border='1' style='width: 100%'>
<tr>
<th valign='top' style='width: 9%'>No.</th>
<th valign='top' style='width: 9%'>Epitope/Cluster Sequence:</th>
<th valign='top' style='width: 9%'>Epitope ID:</th>
<th valign='top' style='width: 9%'>Source Organism</th>
<th valign='top' style='width: 9%'>Source Protein:</th>
<th valign='top' style='width: 9%'>MHC Restriction:</th>
<th valign='top' style='width: 9%'>RF Score:</th>
<th valign='top' style='width: 9%'>Assay Score:</th>
<th valign='top' style='width: 9%'>Assay Type:</th>
<th valign='top' style='width: 9%'>Effector Origin:</th>
<th valign='top' style='width: 9%'>Reference ID:</th>
</tr>
And I want to add next more rows and keep the same width, the with delimiter works when I test it using only the first row, but it doesn't work when the new rows are added, my code to add the new rows is:
function printResultI($array)
{
$i=0;
foreach($array as $row) {
$i=$i+1;
echo"
<tr>
<td style='width: 9%'>$i</td>
<td style='width: 9%'>$row[linear_sequence]</td>
<td style='width: 9%'>$row[E_ID]</td>
<td style='width: 9%'>$row[ant_source_organism_name]</td>
<td style='width: 9%'>$row[E_OBJECT_SOURCE_NAME]</td>
<td style='width: 9%'>$row[mhc_restriction]</td>
<td style='width: 9%'>$row[RFS]</td>
<td style='width: 9%'>$row[assay_score]</td>
<td style='width: 9%'>$row[AS_TYPE]</td>
<td style='width: 9%'>$row[effector_origin]</td>
<td style='width: 9%'>$row[unique_reference_id]</td>
</tr>";
}
}
I think there might be an issue with my quotes inside the echo, thank you