Gossamer Forum
Home : Products : DBMan : Customization :

error showing X when the grafic does not exist

Quote Reply
error showing X when the grafic does not exist
     

Hello,

The odd thing found in the db after the search result is showing X

in the search result page. X means small box with x mark which signs

broken grafic link. Could anyone tell me how to bring search result without x Mark eventhugh file does not exist? Below is the copy of the code.



my (%rec) = @_; # Load any defaults to put in the VALUE field.
$rec{$db_key} =~ s/<.?B>//g;
if (-e "$SAVE_DIRECTORY/$rec{$db_key}/$file") {
opendir (GRAPHIC, "$SAVE_DIRECTORY/$rec{$db_key}") or &cgierr("unable to open directory: $SAVE_DIRECTORY/$rec{$db_key}. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
@photo = qw();
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
push(@photo, $file);
}
}



<td rowspan="3"><img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[0]"> </td>
Subject Author Views Date
Thread error showing X when the grafic does not exist tilmes 3333 Mar 4, 2002, 11:02 AM
Thread Re: [tilmes] error showing X when the grafic does not exist
kellner 3254 Mar 4, 2002, 11:26 AM
Thread Re: [kellner] error showing X when the grafic does not exist
tilmes 3264 Mar 4, 2002, 11:51 AM
Thread Re: [tilmes] error showing X when the grafic does not exist
kellner 3284 Mar 4, 2002, 1:05 PM
Thread Re: [kellner] error showing X when the grafic does not exist
tilmes 3229 Mar 4, 2002, 1:32 PM
Thread Re: [tilmes] error showing X when the grafic does not exist
kellner 3223 Mar 4, 2002, 2:15 PM
Thread Re: [kellner] error showing X when the grafic does not exist
tilmes 3257 Mar 4, 2002, 10:46 PM
Post Re: [tilmes] error showing X when the grafic does not exist
kellner 3181 Mar 5, 2002, 1:35 AM