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