On a day people have 3-5 appointments and the addresses are all in one <TD></TD> with a line break after each address.
I'd like to add the image that will be eventually a link (I'll add that later...) right after the address.
My problem is for some reason after the last address I get two images displayed. I guess my loop overruns my needs, I just don't understand why...
Code: Select all
echo "<td align=\"left\" class=\"table-BR\" bgcolor=\"CCF2FF\" nowrap>";
for ($k = 0; $k <= $numJobsToday; $k++)
{
$kPlusOne = $k + 1;
echo $custHouseNum[$k] . " " . $custStreet[$k];
echo " <img src=\"images/getmap.jpg\" border=\"0\" width=\"10\" height=\"10\">";
if ($kPlusOne < $numJobsToday)
{
echo "<br>";
}
}
echo "</td>";