This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Front Page > May 2004 > Image





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Image
JPG

2004-05-31, 7:14 pm

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.
Jim Buyens

2004-05-31, 7:14 pm

>-----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)
|/---------------------------------------------------
*----------------------------------------------------

Thomas A. Rowe

2004-05-31, 7:14 pm

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)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"JPG" <anonymous@discussions.microsoft.com> wrote in message
news:6D9DC88D-622D-434A-BE43-1F791833BD95@microsoft.com...
> 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.


JPG

2004-05-31, 7:14 pm

Hi,
should I put the link in the dbase?
Ho do I merge the picture file names into an <img> tag?
Thank you.
Thomas A. Rowe

2004-05-31, 7:15 pm

Did you see my reply?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"JPG" <anonymous@discussions.microsoft.com> wrote in message
news:11B82CB4-95BF-49DE-AC6D-824521975AFC@microsoft.com...
> Hi,
> should I put the link in the dbase?
> Ho do I merge the picture file names into an <img> tag?
> Thank you.



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews