This is a discussion on mySQL BLOB Problem within the Coding Help forums, part of the Webmaster Help category; I am retrieving a blob from the DB and trying to display it on a page as an image. The ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I am retrieving a blob from the DB and trying to display it on a page as an image. The problem is i just get the image reference(listing.php?id=3) displaying on the page and a prompt pops up to download the image!?! Below is the code i have to receive the image: PHP Code: Code: <img src="listing.php?id=3"> |
| |||||
| Wouldn't displaying it at "listing.php?id=3" only be html? You need to insert the variable that you created for the image into the img. something like: <img src="$data_img" alt="" /> |
| |||||
| That doesn't work either, just prompts me to download the images again!?! |
| |||||
| Get rid of header("Content-Disposition: attachment; filename=$name"); That forces the browser to download.
__________________ My Blog |
| Tags |
| blob, mysql, problem |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connecting to 2 Mysql database in the same script?? | Ciarán Mc Cann | Coding Help | 11 | 24-07-2007 10:21 AM |
| PHP mySQL Problem!? | ziycon | Server / Technical Administration Tips and Queries | 1 | 15-07-2007 08:31 PM |
| mysql | 3rigena | Webmaster Discussion | 4 | 24-05-2007 09:33 PM |
| MySQL Optimisation? | blacknight | Server / Technical Administration Tips and Queries | 5 | 15-01-2007 05:17 PM |
| CSV to MySQL Conversion Tools? | blacknight | Coding Help | 7 | 04-01-2007 11:00 AM |
| ||||||||
| | ![]() | |||||||