Date: 11/06/00
- Next message: Eirik Overby: "[PHP-DB] DB2 and CHAR(x) FOR BIT DATA columns"
- Previous message: CESBRON S.: "[PHP-DB] Concerning Mysql and ACCESS 97"
- In reply to: sonia: "[PHP-DB] php/mysql"
- Next in thread: John Huggins: "RE: [PHP-DB] php/mysql"
- Reply: John Huggins: "RE: [PHP-DB] php/mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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>
- Next message: Eirik Overby: "[PHP-DB] DB2 and CHAR(x) FOR BIT DATA columns"
- Previous message: CESBRON S.: "[PHP-DB] Concerning Mysql and ACCESS 97"
- In reply to: sonia: "[PHP-DB] php/mysql"
- Next in thread: John Huggins: "RE: [PHP-DB] php/mysql"
- Reply: John Huggins: "RE: [PHP-DB] php/mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

