What's wrong with this code?

<cfquery name="qry_getdealers" datasource="#Application.DSN#">
Select * from Dealers
Where 
<cfloop index="zip" LIST="#ReturnedZIPs#" DELIMITERS=",">
dealer_zip ='#zip#' or
</cfloop>
</cfquery>

I get a list of zipcodes. I need to get all the dealers that have match any one of 
zipcodes from my list.  

I must be missing something simple!

-Jeff

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=34

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182558
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to