RE: [PHP-DB] php/mysql

From: Date: Mon, 06 Nov 2000 13:06:26 +0000
Subject: RE: [PHP-DB] php/mysql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4243@lists.php.net to get a copy of this message
I agree with Andy on this point, but you also might want to use the GetImageSize() PHP function to derive the width and height automatically if your images change often. Plus, if the image is not in the filesystem, this function should tell you this. John > -----Original Message----- > From: Andy Wallace [mailto:andyw2@btconnect.com] > Sent: Monday, November 06, 2000 4:52 AM > To: PHP-DB > Subject: Re: [PHP-DB] php/mysql > > > >hi > >how do i insert images from database into my webpage please help > >if u can. > > > >sonia > > I've always found it easier to store the images separately on the > server and > just reference them by filename in the database. Then the relevant bit of > HTML would look something like (assuming you've already got the code to > connect to the relevant row in the table): > > <img src="<?php echo $row["image"] ?>" > > You could also store height and width information in the db too if > necessary. > > AndyW > > >

« previous php.db (#4243) next »