I have a set of images on a server. I want to pick these from the
database without creating a
temporary file on the server; and also have some text alongwith it.
Something like,
ImageViewer.php
<?
print ( "<IMG SRC='GetImage.php?strImageId=1'>" );
print ( " some description about the image... " );
print ( "<IMG SRC='GetImage.php?strImageId=2'>" );
print ( " some description about the image... " );
....
....
?>
GetImage.php would server me with the image data from the database,
probably something like
this.
<?
.... Create database connection ...
.... Get image data from database depending on strImageId ...
header ( "Content-Type: Image/gif" );
print ( $image_data );
?>
GetImage.php gives the image alright.. ( I called
http://my_server.com/GetImage.php?strImageId=1
). However, what I want is a combination of both html and text.
Is it possible to acheive what I am trying to??
Any help would be greatly appreciated.
Regards,
Rithish.