in reply to Re: CGI-SQL-HTML-Display "no image"
in thread CGI-SQL-HTML-Display "no image"
$path = "/dir_name/sub_dir_name/"; #Determine if the image file exists my $fn = $path.$Data{dr_id}.'.jpg'; if (-e $fn) { my $image = $fn; } else { $image = $path."DefaultPhoto.gif";
When I post it to my server, it doesn't seem to find the file. It returns the requested person's information, but returns the DefaultPhoto.jpg even when the image file exists. I thought perhaps the problem was in my path name somewhere, so I printed $fn and $image to the browser. I'm pulling a person that should have a photo and I get the following back:
The browser displays $image (DefaultPhoto.jpg) and returns the link in the HTML belowFile is: /dir_name/sub_dir_name/BOWG.jpg Image is: /dir_name/sub_dir_name/DefaultPhoto.gif
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI-SQL-HTML-Display "no image"
by Zaxo (Archbishop) on May 25, 2003 at 01:53 UTC | |
by WhiteBird (Hermit) on May 26, 2003 at 06:23 UTC |