Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfloop with parameter array

New Here ,
Apr 07, 2008 Apr 07, 2008
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.
209
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 07, 2008 Apr 07, 2008
LATEST
<cfloop array="#yourarray#" index="arrayel">
<cfquery...>
...
WHERE ticketno = '#arrayel#'
</...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources