Re: Displaying Blobs by a newbie

From: Date: Sun, 14 Sep 2003 17:37:23 +0000
Subject: Re: Displaying Blobs by a newbie
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-162567@lists.php.net to get a copy of this message
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" <php-general@zirzow.dyndns.org> wrote in message news:20030913164636.GA4251@bagend.shire... > * Thus wrote Phil King (phil@phil-king.com): > > 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 image/jpeg in the header of the page to display > > the images. > > Basically you need two scripts: > > script1: > generate html that has <img> tags that point to script2. > > script2: > read one image from the database and send that image with the > appropriate content-type > > > > > > Can anyone advise me or point me in the right direction to rectify this. > > This has been discussed may times on the list, you can search the > archives to find out more detailed discussions on this. > > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#162567) next »