Thank you sde for your super-quick reply!!
This is *nearly* there again!! :s
The structure of the table I'm trying to build is:
****************
Code:
<table border="1" width="200">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td colspan="3" align="center">
<table border="1" width="100%">
<tr>
<td align="center">4</td>
<td align="center">5</td>
</tr>
</table></td>
</tr>
</table>
****************
Now that the last row is captured, I've been trying to run another loop that will place a nested table that holds the last X records, and that nested table is centered within the main table... (if you follow my meaning!!)
The closest I can get is :
**********************
PHP Code:
// use the ternary operator to inject align tag if on the last row
if ($row_number==$total_rows)
{
// last cell is colspanned by 3 and centered
echo "<td colspan=\"3\" align=\"center\">";
//start loop to print last remaining columns in their own table
for ($z=1; $z <= ($count-$i); $z++)
{
echo "<table align=\"center\">
<tr>
<td align=\"center\" valign=\"top\">
<table>
<tr>
<td width=\"125\">$each</td>
</tr>
</table></td>
</tr>
</table>";
}
echo "</td>";
}
else
{
echo "<td width=\"125\">$each</td>\n";
}
***********************
I feel like I'm almost there, but need help to finally nail it!!
I'm feeling much more relaxed than I was earlier, so a good nights sleep is getting closer!!!
