How to I fetch an image file from /tmp directory?
| From: | Mark Gordon | Date: | Sun, 29 Jul 2001 18:53:16 +0000 |
| Subject: | How to I fetch an image file from /tmp directory? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10877@lists.php.net to get a copy of this message | ||
I am inserting binary image data into a mysql table (mediumblob).
Actually, what goes into the table is the /tmp... pathname.
This is the code I used to try to retrieve, but I get "Resource ID#2"
$get=mysql_query("SELECT bin_data FROM binary_data WHERE id=$id");
print"<img src=$get>";
=====
Mark
eyesyte@yahoo.com
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/