Hosaka,
You could try doing a group in your cfoutput to create the
participant list.
<CFOUTPUT QUERY="test" GROUP="CourseID">
#CourseID#
<!--- empty variable and create comma separated string --->
<CFSET FormatName="">
<CFOUTPUT>
<CFSET FormatName=FormatName & Name & ",">
</CFOUTPUT>
<!--- trim ending comma --->
<CFSET FormatName=Left(FormatName,Len(FormatName)-1)>
#FormatName#
<BR>
</CFOUTPUT>
Todd
-----Original Message-----
From: summy h at yahoo.com [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 1:16 AM
To: CF-Talk
Subject: make it simple to show the table.
Hi,
I got the result by cfquery as below.
---
CourseID Name
1 John
1 Paul
2 George
3 Jason
3 Ringo
I want to format these records for a web page like
---
CourseID Participant
1 John, Paul
2 George
3 Jason, Ringo
I'm stuck. How do I program to format in coldfusion?
Thanks.
Hosaka
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists