Gossamer Forum
Home : Products : DBMan : Customization :

show text according to category

Quote Reply
show text according to category
Hi,

I am trying to show some text according the value for a category field. The code I am using in html_record is



if ($rec{'Region'} eq "Africa" ) { print qq|
<$font><a href="../databank/africamap.htm">Country Profile and debt statistics</a></font>
|;}


if ($rec{'Region'} eq "Asia" ) { print qq|
<$font><a href="../databank/asiamap.htm">Country Profile and debt statistics</a></font>
|;}


if ($rec{'Region'} eq "Latin America" ) { print qq|
<$font><a href="../databank/lamericamap.htm">Country Profile and debt statistics</a></font>
|;}


This works fine for general searches but if I just search on a single region eg. Africa the text doesn't show up all. The same with any of the regions.

Any ideas.
Subject Author Views Date
Thread show text according to category smart 1338 Jul 17, 2002, 9:21 AM
Post Re: [smart] show text according to category
sigrid 1279 Jul 22, 2002, 1:40 PM