Gossamer Forum
Home : Products : DBMan : Customization :

In need of coding help - see code below

Quote Reply
In need of coding help - see code below
print qq||;
if ($rec{'JACUZZI_TUB'}) {
print qq|
<td valign="top" width="50"><img src="$db_image_url/hottub.gif"></td>
|;
else {
print qq|
<td valign="top" width="50"><img src="$db_image_url/hottub.gif"></td>
|;
}

Im trying to figure out, when I add the else { statement afterwards, it craps out on me....any suggestions??

NOTE: Graphic Names are meant to be identical for testing purpose.

Quote Reply
Re: In need of coding help - see code below In reply to
Try:

print qq||;
if ($rec{'JACUZZI_TUB'}) {
print qq|
<td valign="top" width="50"><img src="$db_image_url/hottub.gif"></td>
|;
}
else {
print qq|
<td valign="top" width="50"><img src="$db_image_url/hottub.gif"></td>
|;
}


Melanie
http://www.somemoorecats.com/
http://www.okhima.org/
Quote Reply
Re: In need of coding help - see code below In reply to
Hi Melanie and thanks
Got it working.



Quote Reply
Re: In need of coding help - see code below In reply to
Please don't post duplicate Threads in the Forums....

Thank you.

Regards,

Eliot Lee