Re: [PHP-DB] php/mysql From: Andy Wallace (andyw2 <email protected>)
Date: 11/06/00

>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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>