Re: Problems with images in the db

From: Date: Thu, 15 Feb 2001 08:59:57 +0000
Subject: Re: Problems with images in the db
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6653@lists.php.net to get a copy of this message
Hello, Sunil Jagarlamudi! You wrote: > How do I overcome that ? When I try to just echo the > image it works fine, > but when I try to add a few more lines like echoing > other rows which have firstname and lastname of the > people nothing comes out Imagine you open an image file from the disk. What happens if someone adds a line of text to that file? We don't know, will the image be scrapped or not, but you will surely not get any new text on or below that image. This is what you are trying to do. Now imagine you open an HTML file with an <IMG> tag pointing to that image, and having additional <P> tag describing that image. This is what you need. Now to your problem: to reproduce the above behavior you got to use two scripts: one to show an image from your database and other to point to that script in its <IMG> tag and having additional info. Something like that: <IMG SRC="image.php?file=jsmith-small" WIDTH=100 HEIGHT=150> P.S. Of course if you wanted new text to appear ON your image, you may put it in with corresponding Image* functions. -- Piloteers do it on the road

« previous php.db (#6653) next »