Still trying to get image from /tmp path
| From: | Mark Gordon | Date: | Sun, 29 Jul 2001 20:31:12 +0000 |
| Subject: | Still trying to get image from /tmp path | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10880@lists.php.net to get a copy of this message | ||
Thanks, David. That helped a little but now what I get is:
<img src=/tmp/phpMVWr5Z> in the output.
The tmp folder is up the directory tree outside of my www folder (on my
web host's 'puter)- I don't have direct access to it.
Heres the modified code:
$sql=mysql_query("SELECT bin_data FROM binary_data WHERE id=4");
$row = mysql_fetch_array($sql);
header("Content-type: image/jpeg");
echo "<img src=$row[0]>";
How can I use the path stored in the db to retrieve the image?
=====
Mark
eyesyte@yahoo.com
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/