0
cfloop with parameter array
New Here
,
/t5/coldfusion-discussions/cfloop-with-parameter-array/td-p/350810
Apr 07, 2008
Apr 07, 2008
Copy link to clipboard
Copied
Hey Everyone,
I would like to pass an array as a parameter, now how would I have to use a cfloop to do the query for each parameter, ie....
<cfloop ......>
<cfquery name="Billing" datasource="#request.dsn#">
UPDATE table
SET field = "value"
WHERE ticketno = 'ArrayValue'
</cfquery>
</cfloop>
Thanks,
T.J.
I would like to pass an array as a parameter, now how would I have to use a cfloop to do the query for each parameter, ie....
<cfloop ......>
<cfquery name="Billing" datasource="#request.dsn#">
UPDATE table
SET field = "value"
WHERE ticketno = 'ArrayValue'
</cfquery>
</cfloop>
Thanks,
T.J.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/coldfusion-discussions/cfloop-with-parameter-array/m-p/350811#M31491
Apr 07, 2008
Apr 07, 2008
Copy link to clipboard
Copied
<cfloop array="#yourarray#" index="arrayel">
<cfquery...>
...
WHERE ticketno = '#arrayel#'
</...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
<cfquery...>
...
WHERE ticketno = '#arrayel#'
</...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

