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.
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.