> From: Roberto Perez [mailto:[EMAIL PROTECTED] 
> My question is: what other (more elegant) ways could you 
> think of to achieve the same results (i.e., multiple entries 
> to the same table fields)?
> I'd appreciate ideas, pointers, and suggestions.

<cfloop from="1" to="10" index="x">

        <cfparam name="form.itemName#x#" default="" />
        <cfparam name="form.itemRank#x#" default="none" />
        
        <cfif form['itemRank' & x] neq "none">
                
                <cfquery ...>
                INSERT INTO
                        ....
                </cfquery>
                
        </cfif>

</cfloop>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232783
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