SOLVED: Need query help please

2005-11-04 Thread Will Tomlinson
Here's my final solution for the query - a self-join. SELECT TBIG.prodimagefilename AS FullSizeImageFilename, TLITTLE.prodimagefilename AS ThumbnailImageFilename FROM tblimages_rel TBIG, tblimages_rel TLITTLE WHERE TBIG.prodID = #URL.prodID# AND TBIG.prodID = TLITTLE.prodID AND TBIG.ImageType

Re: Need query help please

2005-11-03 Thread Will Tomlinson
I just needed help making my query work. Matthieu is helping me with a self join. Thanks, Will ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.c

Re: Need query help please

2005-11-03 Thread Webmaster at FastTrack On Line
The way I do it on a couple of sites is to store large images in one folder and thumbs in another. I store one file name in the db table and just use: #application.photos#\#table.jpeg_name# or #application.photos_thumb#\#table.jpeg_name# Jenny

Re: Need query help please

2005-11-02 Thread Greg Morphis
yeah I agree with Charlie.. just add an extra column called "thumbnail" with the image name. On 11/2/05, Charlie Griefer <[EMAIL PROTECTED]> wrote: > why not just name the images something like "img_large.jpg" and > "img_thumb.jpg" > > this way you can just store "img" in the database (in one rec

Re: Need query help please

2005-11-02 Thread Charlie Griefer
why not just name the images something like "img_large.jpg" and "img_thumb.jpg" this way you can just store "img" in the database (in one record), and output #img#_large.jpg or #img#_thumb.jpg depending on which you need? On 11/2/05, Will Tomlinson <[EMAIL PROTECTED]> wrote: > For my products, I

Need query help please

2005-11-02 Thread Will Tomlinson
For my products, I have a tblImageTypes that looks like this ImageTypeID (PK) ImageTypeName 1Thumbnail 2Large I have a many/linking tblimages_rel that looks like this ImageID (PK) ImageTypeID (FK) prodID (FK) filename 11