Mark wrote:
I have the following snippet of code that I cannot seem to find a way to add an image to a <TR>. The line in question is the first one under the else statement:
print "<TR BGCOLOR=\"#381499\">";
This line, I would like to show a image called "backgrnd.png" instead of a backgound color.
Any help would be much appreciated Thanks Mark
<? if ($page == "printerFriendly"):
print "<TR style=\"background-color: #FFFFFF;\">";
print "<TD style=\"padding: 5px; padding-right: 0px; padding-bottom: 10px; padding-left: 5px; width: 70px;\">";
print "<a href=\"index.php\"><IMG src=\"images/logo.gif\" ALT=\">Staff Database\" border=\"0\"></a>";
print "</td>";
print "<TD><DIV CLASS=\"logo_large\" style=\"color: ##FFFFFF;\"><B>Staff Database</B></DIV><DIV CLASS=\"logo_small\" style=\"color: #000;\">Staff tracking made easier</div></TD>";
print "</TR>";
else:
print "<TR BGCOLOR=\"#381499\">";
print "<TD style=\"padding: 10px; width: 170px;\">";
print "<a href=\"index.php\"><IMG src=\"images/logo.gif\" border=\"0\"></a>";
print "</td>";
print "<TD><DIV CLASS=\"logo_large\"><B>>Staff Database</B></DIV><DIV CLASS=\"logo_small\">Staff tracking made easier</div></TD>";
print "</TR>";
?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php