Would someone send me some code that demonstrates a two- dimensional array?


I have this and need to pass another variable but don't know how:

<CFSET ItemArray = ListToArray(#FORM.Item_id#)>
<CFSET ArrayLength = #ArrayLen(ItemArray)#>

<CFLOOP Index="LoopCount" from="1" to="#variables.ArrayLength#">
<CFSET ItemOrdered = ItemArray[#LoopCount#]>
<CFQUERY name="insertitems" datasource="#Application.DSN#">
INSERT INTO recipe_item( recipe_id, Item_id)
VALUES (#VARIABLES.MAXRecipeID#,#variables.ItemOrdered#)
</cfquery>
</cfloop>

Thanks.

Denise



------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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