Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Show images stored in filesystem

Locked
clinterman
Posts: 24
Joined: Thu Apr 05, 2012 7:53 am

Show images stored in filesystem

Unread post by clinterman »

I have a database containing over 200.000 products and hundreds stores. Each having 1 or more images. The images are stored in the filesystem. I have a table containing the store_id and the image filename.

How can I show these images from the filesystem?

My form has this recordsource:
SELECT id,
concat("<img src=""", store.logo, """ alt=""store_logo"">") as img_logo, store.logo
from stores

the field store.logo contains the filepath and filename
the file img_log contains: <img src="/images/content/stores/1/2.jpg" alt="store_logo">

Any suggestions?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Show images stored in filesystem

Unread post by admin »

clinterman,

Probably with an HTML object like this..

Code: Select all

 <img src="#img_logo#" alt="#store_logo#">
(store_logo and img_logo need to be fields on the Edit Form)

Steven
clinterman
Posts: 24
Joined: Thu Apr 05, 2012 7:53 am

Re: Show images stored in filesystem

Unread post by clinterman »

Steven,

thanks it looks great.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Show images stored in filesystem

Unread post by admin »

.
Locked