Hi Curt,
Thanks for the tip.
I created the two scripts . The image tag on the main page calls the image
from the other script with an incremented id parameter.
Thanks for your help.
Phil.
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Phil King ([EMAIL
* Thus wrote Phil King ([EMAIL PROTECTED]):
> Hi All,
>
> I have some images in a mysql database. I wish to display all these images
> on a PHP Page.
>
> I have created a query to retrieve all the images from the database but all
> that is displayed is characters.
> I have the Content-Type as ima
Hi Warren,
Thanks for your reply.
I imported the blobs into mysql database. They were in jpeg format.
Phil.
"Warren Vail" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You didn't say how the images were placed in the db but you did indicate
they were jpeg format.
>
> I'd try;
>
You didn't say how the images were placed in the db but you did indicate they were
jpeg format.
I'd try;
fetching the db column in to a string variable;
then;
$im = imagecreatefromstring($imagestring);
header ("Content-type: image/jpeg");
imagejpeg($im);
imagedestroy($im);
good luck,
Warren
4 matches
Mail list logo