I should have mentioned, if you want to make the update query that 
much quicker, you could just tab through the price fields and either 
change them or enter 0 if it's the same. then just wrap <cfif 
thisprice GT "0"> around the update query:

<cfset row = 0>
<cfloop index="thisprice" list="#form.prices#">
<cfset row = row + 1>

<cfif thisprice GT "0">
<CFQUERY DATASOURCE="#attributes.DSN#">
UPDATE products
SET Price = #thisprice#
WHERE ProductID = #listgetat(form.ProductIDs, row)#
</CFQUERY>
</cfif>

</cfloop>
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to