Please check this code and let me know what I have done wrong. I have followed every logical solution that I can think of including using eq instead of <= but no luck. Just outputs a wrong image.
Here Goes:
##########################################################
## A Link ##
##########################################################
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..
my (%rec) = @_;
$output = qq|
< p >< a href="$build_jump_url?$db_key=$rec{$db_key}" >< img src="http://www.webrite-zw.com/images/search/bullet3.gif" width="9" height="10" alt="$rec{'Title'}" border="0" >< /a > < $font >< a href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}< /a >- < /font >|;
if ($rec{'isNew'} eq "Yes") { $output .= qq| < $font_new >< i >< b >New< /b >< /i > < /font >|; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq| < $font_pop >< i >< b >Hot< /b >< /i > < /font >|; }
if ($isBest eq 1) { $output .= qq|< img src="http://www.webrite-zw.com/images/1star.jpg" alt="Editors Choice 1 Star" >|; }
elsif ($isBest eq 2) { $output .= qq| < img src="http://www.webrite-zw.com/images/2star.jpg" alt="Editors Choice 2 Stars" >|; }
elsif ($isBest eq 3) { $output .= qq| < img src="http://www.webrite-zw.com/images/3star.jpg" alt="Editors Choice 3 Stars" >|; }
elsif ($isBest eq 4) { $output .= qq| < img src="http://www.webrite-zw.com/images/4star.jpg" alt="Editors Choice 4 Stars" >|; }
elsif ($isBest eq 5) { $output .= qq| < img src="http://www.webrite-zw.com/images/5star.jpg" alt="Editors Choice 5 Stars" >|; }
else { < img src="http://www.webrite-zw.com/images/1star.jpg" alt="Editors Choice 1 Star" > }
if ($Loc <= Zimbabwe) { $output .= qq|< img src="http://www.webrite-zw.com/images/Zimbabwe.jpg" alt="Zimbabwe" >|; }
elsif ($Loc <= SAfrica) { $output .= qq| < img src="http://www.webrite-zw.com/images/SAfrica.jpg" alt="South Africa" >|; }
elsif ($Loc <= Angola) { $output .= qq| < img src="http://www.webrite-zw.com/images/Angola.jpg" alt="Angola" >|; }
elsif ($Loc <= Zambia) { $output .= qq| < img src="http://www.webrite-zw.com/images/Zambia.jpg" alt="Zambia" >|; }
elsif ($Loc <= Namibia) { $output .= qq| < img src="http://www.webrite-zw.com/images/Namibia.jpg" alt="Namibia" >|; }
elsif ($Loc <= Botswana) { $output .= qq| < img src="http://www.webrite-zw.com/images/Botswana.jpg" alt="Botswana" >|; }
elsif ($Loc <= Mozambique) { $output .= qq| < img src="http://www.webrite-zw.com/images/Mozambique.jpg" alt="Mozambique" >|; }
elsif ($Loc <= Lesotho) { $output .= qq| < img src="http://www.webrite-zw.com/images/Lesotho.jpg" alt="Lesotho">|; }
else { }
if ($rec{'Revchoice'} eq "Yes") { $output .= qq| < $font_rev >< a href="$build_review_url?$db_key=$rec{$db_key}" >< i >< b >Review< /b >< /i >< /a >< /font >\n|; }
$output .= qq| < $font_date >Rating: $rec{'Rating'} ($rec{'Votes'} Votes) [< a href="$frameit_url?url=$rec{'URL'}&$db_key=$rec{$db_key}" >Rate This Site< /a >]< /font >< br >|;
if ($rec{'Description'}) { $output .= qq| < $font >$rec{'Description'}< /font >\n|; }
$output .= qq| < $font_date >< em >(Added: $rec{'Date'}, Hits: $rec{'Hits'}) < /em >< /font >< br >< /p>|;
return $output;
}
Here Goes:
##########################################################
## A Link ##
##########################################################
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..
my (%rec) = @_;
$output = qq|
< p >< a href="$build_jump_url?$db_key=$rec{$db_key}" >< img src="http://www.webrite-zw.com/images/search/bullet3.gif" width="9" height="10" alt="$rec{'Title'}" border="0" >< /a > < $font >< a href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}< /a >- < /font >|;
if ($rec{'isNew'} eq "Yes") { $output .= qq| < $font_new >< i >< b >New< /b >< /i > < /font >|; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq| < $font_pop >< i >< b >Hot< /b >< /i > < /font >|; }
if ($isBest eq 1) { $output .= qq|< img src="http://www.webrite-zw.com/images/1star.jpg" alt="Editors Choice 1 Star" >|; }
elsif ($isBest eq 2) { $output .= qq| < img src="http://www.webrite-zw.com/images/2star.jpg" alt="Editors Choice 2 Stars" >|; }
elsif ($isBest eq 3) { $output .= qq| < img src="http://www.webrite-zw.com/images/3star.jpg" alt="Editors Choice 3 Stars" >|; }
elsif ($isBest eq 4) { $output .= qq| < img src="http://www.webrite-zw.com/images/4star.jpg" alt="Editors Choice 4 Stars" >|; }
elsif ($isBest eq 5) { $output .= qq| < img src="http://www.webrite-zw.com/images/5star.jpg" alt="Editors Choice 5 Stars" >|; }
else { < img src="http://www.webrite-zw.com/images/1star.jpg" alt="Editors Choice 1 Star" > }
if ($Loc <= Zimbabwe) { $output .= qq|< img src="http://www.webrite-zw.com/images/Zimbabwe.jpg" alt="Zimbabwe" >|; }
elsif ($Loc <= SAfrica) { $output .= qq| < img src="http://www.webrite-zw.com/images/SAfrica.jpg" alt="South Africa" >|; }
elsif ($Loc <= Angola) { $output .= qq| < img src="http://www.webrite-zw.com/images/Angola.jpg" alt="Angola" >|; }
elsif ($Loc <= Zambia) { $output .= qq| < img src="http://www.webrite-zw.com/images/Zambia.jpg" alt="Zambia" >|; }
elsif ($Loc <= Namibia) { $output .= qq| < img src="http://www.webrite-zw.com/images/Namibia.jpg" alt="Namibia" >|; }
elsif ($Loc <= Botswana) { $output .= qq| < img src="http://www.webrite-zw.com/images/Botswana.jpg" alt="Botswana" >|; }
elsif ($Loc <= Mozambique) { $output .= qq| < img src="http://www.webrite-zw.com/images/Mozambique.jpg" alt="Mozambique" >|; }
elsif ($Loc <= Lesotho) { $output .= qq| < img src="http://www.webrite-zw.com/images/Lesotho.jpg" alt="Lesotho">|; }
else { }
if ($rec{'Revchoice'} eq "Yes") { $output .= qq| < $font_rev >< a href="$build_review_url?$db_key=$rec{$db_key}" >< i >< b >Review< /b >< /i >< /a >< /font >\n|; }
$output .= qq| < $font_date >Rating: $rec{'Rating'} ($rec{'Votes'} Votes) [< a href="$frameit_url?url=$rec{'URL'}&$db_key=$rec{$db_key}" >Rate This Site< /a >]< /font >< br >|;
if ($rec{'Description'}) { $output .= qq| < $font >$rec{'Description'}< /font >\n|; }
$output .= qq| < $font_date >< em >(Added: $rec{'Date'}, Hits: $rec{'Hits'}) < /em >< /font >< br >< /p>|;
return $output;
}

