detect a file if it exist and display an image
| From: | Louie Miranda | Date: | Fri, 17 Sep 2004 07:04:44 +0000 |
| Subject: | detect a file if it exist and display an image | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196941@lists.php.net to get a copy of this message | ||
im not sure if i coded one of my application wrong, i am displaying an
image by displaying the itemcode and just adding a ".jpg" extension at
the end.
like this..
$itemCode = $row['itemCode'];
..
<img src=/images/$itemCode.jpg>
i assumed before that i can show it all, but i found out that i cannot.
my problem now is the $itemCode is on a database and the image
filename is on directory.
Will it be possible to detect a image file it exist or not?
--
Louie Miranda
http://www.axishift.com