Wouldn't you just change the name of your index? It looks like your
actually outputting rs_Update.GF_Phases instead of the loop index.

Mark


-----Original Message-----
From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 7:45 AM
To: CF-Talk
Subject: Counting in a Field? cfloop


How can i take the values of a field & count them?

<cfloop index="GF_Phases" list="#rs_Update.GF_Phases#" 
delimiters=",">
<cfoutput>GP Phase: #GF_Phases#<br></cfoutput>
</cfloop>

returns: GF_Phases: 4,2,7

GP Phase: 4
GP Phase: 2
GP Phase: 7

i would like it to count like this instead

GP Phase: 1
GP Phase: 2
GP Phase: 3


how could i do this?

thank you
-paul

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to