Okay, I pasted the wrong code - is it Monday again?


Here's the code I'm using and it's listing images that DO exist.


<!--- List Missing Images --->
<b>Missing 400 images</b><br>
<cfoutput query="listImage">
            <cfif NOT
FileExists("c:\inetpub\lanescollectibles\images\400\#lanesID#.jpg")>

                        #name# - #lanesid#.jpg<br>
            </cfif>
</cfoutput>        

Thank you,


Donna French

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 4:43 PM
To: CF-Talk
Subject: Re: FileExists sample code?


No, that'll list the images that DO exist.  You need to remove the
CFELSE tag in there.

cheers,
barneyb

On Fri, 6 Aug 2004 16:43:18 -0500, Donna French
<[EMAIL PROTECTED]> wrote:
> Shouldn't this work to give me a list of the images that are not
present
> for the dolls table?
>
> <cfquery name="listImage">
>        SELECT lanesID, name
>        FROM dolls
> </cfquery>
>
> <!--- List Missing Images --->
> <b>Missing 400 images</b><br>
> <cfoutput query="listImage">
>        <cfif NOT
> FileExists("c:\inetpub\lanescollectibles\images\400\#lanesID#.jpg")>
>
>        <cfelse>
>                #name# - #lanesid#.jpg<br>
>        </cfif>
> </cfoutput>
>
> Thank you,
>
> Donna French
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to