Image

J

JPG

Hi, I need to link some images to an Access database, its going to be a shopping cart, and I have all the images of the products in the hosting, i need to link them so they can be displayed.
 
J

Jim Buyens

-----Original Message-----
Hi,
Howdy.

I need to link some images to an Access database, its
going to be a shopping cart, and I have all the images
of the products in the hosting, i need to link them so
they can be displayed.

The usual approach is to store the pictures in a folder
somewhere, and then store the picture file names in the
database.

In your database queries, you merge the picture file
names into an <img> tag, and send the <img> tag (rather
than plain text) to the browser.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
T

Thomas A. Rowe

In the database create a text field for the image fieldname.

Then in your pages use:

<img src="pathtofolder/<%=objRS("image")%>" width="200">

objRS is the name of the recordset you are using to retrieve the data from the database

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


JPG said:
Hi, I need to link some images to an Access database, its going to be a shopping cart, and I have
all the images of the products in the hosting, i need to link them so they can be displayed.
 
J

JPG

Hi
should I put the link in the dbase
Ho do I merge the picture file names into an <img> tag
Thank you.
 
T

Thomas A. Rowe

Did you see my reply?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top