Hi,
I have 2 background images.
Ineed to add the first image if the value of variable test is 1 otherwise i need to add the second background image.
I have written the following code:
However it does not display any image. Please let me know how to do this.
Thanks.
I have 2 background images.
Ineed to add the first image if the value of variable test is 1 otherwise i need to add the second background image.
I have written the following code:
Code:
<?PHP
if ($test ==1)
echo "<td width='50%' valign='top' STYLE='background-image: url('img/table_faoback.jpg');'>";
else
echo "<td width='50%' valign='top' STYLE='background-image: url('img/table_back.jpg');'>";
?>
Thanks.
Comment