Gossamer Forum
Home : Products : DBMan : Customization :

Re: Mysterious output, slow searching now ?

Quote Reply
Re: Mysterious output, slow searching now ? In reply to
What I see from your site is the following:

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





Subject Author Views Date
Thread Mysterious output, slow searching now ? CyborgNY 1801 Oct 18, 1999, 6:12 AM
Post Re: Mysterious output, slow searching now ?
JPDeni 1736 Oct 18, 1999, 6:41 AM
Post Re: Mysterious output, slow searching now ?
Eliot 1740 Oct 18, 1999, 6:42 AM
Post Re: Mysterious output, slow searching now ?
CyborgNY 1730 Oct 18, 1999, 8:10 AM
Post Re: Mysterious output, slow searching now ?
JPDeni 1732 Oct 18, 1999, 8:20 AM
Post Re: Mysterious output, slow searching now ?
CyborgNY 1737 Oct 18, 1999, 10:38 AM
Post Re: Mysterious output, slow searching now ?
JPDeni 1748 Oct 18, 1999, 11:54 AM
Post Re: Mysterious output, slow searching now ?
CyborgNY 1739 Oct 18, 1999, 9:51 PM