Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying images from Access using CF

Status
Not open for further replies.

suarezweb

Programmer
Jan 31, 2001
3
US
I am using an Access db to store a product inventory, i.e. name, price, size and also photo (JPG) of each product. I am storing the links to each photo in Access - After querying the db, how do I use <CFOUTPUT> or another CF tag to open and display the appropriate photo along with the other (text) fields of each product?
 
something like this...

<cfquery datasource=&quot;DSN&quot; name=&quot;getproducts&quot;>
SELECT * FROM Products
ORDER BY ProductID
</cfquery>

<cfoutput query=&quot;getproducts&quot;>
<img src=&quot;/photos/#Photo#&quot; border=&quot;0&quot;>
#ProductName# - #DollarFormat(ProductPrice)#<BR>
#ProductDescription#
</cfoutput>

Obviously, you'd want to add some HTML formatting, tables, etc..

Hope this helps!

Bobby R

 
Bobby,

Thanks, this looks like exactly what I need.

Dave Suarez
suarezweb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top