What I see from your site is the following:
<font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
From what you've said, you only want the image (and the link to the popup) to appear if there's a review.
I'm not sure about when there isn't a review, though. Is the field empty or is the word None in it? I'll give you the code for both.
If the field would be empty, use:
if ($rec{'Been there Ate that'}) {
print qq|
<tr><td align=left valign=top>
<font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
|;
}
print qq|
If the word None is in the field when there is no review, use:
unless ($rec{'Been there Ate that'} eq 'None') {
print qq|
<tr><td align=left valign=top>
<font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
|;
}
print qq|
------------------
JPD
Code:
<tr><td align=left valign=top> <font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
From what you've said, you only want the image (and the link to the popup) to appear if there's a review.
I'm not sure about when there isn't a review, though. Is the field empty or is the word None in it? I'll give you the code for both.
If the field would be empty, use:
Code:
|; if ($rec{'Been there Ate that'}) {
print qq|
<tr><td align=left valign=top>
<font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
|;
}
print qq|
If the word None is in the field when there is no review, use:
Code:
|; unless ($rec{'Been there Ate that'} eq 'None') {
print qq|
<tr><td align=left valign=top>
<font face=Verdana, Arial, Helvetica size=2 color=#003399>Been there, ate
that!:</font></td>
<td><font face="verdana,arial,helvetica" size="2">
<A HREF="javascript penNew('http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/reviews/norev.html')">
<img
src="http://www.tasteofbrooklyn.com/tob/cgi-bin/dbman/lunchico.gif"
height=42 width=42 border=0> </a></font></td></tr>
|;
}
print qq|
------------------
JPD