Since the query errors, I can't get the results.  However,
in the CF error, the SQL is shown and I don't see a problem.

However, even if I take out the cfif's and just use

....
from properties
where 1 = 1
and 2 = 2
left join property_photos
....

I still get an error.

It just doesn't like the "where" and "and" clauses.

???



> -----Original Message-----
> From: Will Tomlinson [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 23, 2008 11:24 PM
> To: CF-Talk
> Subject: Re: How can I use conditional statements in this query?
> 
> > Hi, all...
> >
> > I can't figure out how to use the cfif statements
> > in the query below.  Everywhere I put them I get a syntax
> > error.  DB is MySQL 5.
> >
> > Suggestions, anyone?
> >
> 
> use your results variable in cfquery to see what SQL is being generated.
> 
> Will



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306000
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to