faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 24 people (46%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I store an image path in PostgreSQL and dispaly it in PHP

Feb 28th, 2008 00:13
dman, Narendra Jain, W McCloud, http://www.ttnr.org


Using a query like:
select product_code, product_name, image_path 
from product_master
Get the image_path into a variable (say l_image_path) and then use it 
a the <IMG> tag in the PHP script to display the image, as below:
print "<img src='". $l_image_path. "' >";