image source from PHP
| From: | Karina S | Date: | Thu, 23 Jan 2003 23:05:23 +0000 |
| Subject: | image source from PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132914@lists.php.net to get a copy of this message | ||
Hello,
I want to make a sit where an image comes from a database. In the db I store
only the filename and path. I have the following code:
<?php $ps = '"Pic/'.$row_photos['Photo_File_Name'].'"';
echo $ps;?>
<img src=<?php $ps; ?> >
The echo line print the good string e.g.: "Pic/Myphoto.jpeg"
But I can't see the image. Only a one small whit box wit red x (no image).
And if I try to put with hard code: <img src "Pic/Myphoto.jpeg" > It works
fine.
What can I do?
Thanks!