how to display images from the database
Posted: Wed Mar 31, 2004 6:09 am
Hi
I have read the article in CodeWalkers about how to store and retrieve images from the database.
The article explains that once I have the type of the image and the image itself, then I can display them like this:
I would like to be able to display the image within HTML content. Meaning that instead of writing:
...<img src="xxx.jpg"></img>...
I would display that image in that place. Note that the <img> tage may be embedded inside a much more complex html code.
does anyone know how I can make that last move?
thanks in advance
I have read the article in CodeWalkers about how to store and retrieve images from the database.
The article explains that once I have the type of the image and the image itself, then I can display them like this:
Code: Select all
Header ("Content-type: $image_type");
print $image;...<img src="xxx.jpg"></img>...
I would display that image in that place. Note that the <img> tage may be embedded inside a much more complex html code.
does anyone know how I can make that last move?
thanks in advance