I had a problem before with orsering my data And I got help from CFhub and he gave me this solution And it works almost
The problem is it only shows one record after each starting Character.
<CFQUERY NAME="getDomain" DataSource="mysource">
SELECT
name,
url,
langid,
Right(name,1) AS FirstChar
FROM domain
GROUP BY
FirstChar
</cfquery>
<cfoutput query="" group="">
#FirstChar#
<cfoutput>
#name# #Url#
</cfoutput>
</cfoutput>
This is the way i would like it to show
A
ABCnews abcnews.go.com
AdWeek ;
Advertising Age ;
Back to top
B
BBC News news.bbc.co.uk
Bloomberg ;
Brandweek
i am new to coldfusion so I hope someone acn help me
The problem is it only shows one record after each starting Character.
<CFQUERY NAME="getDomain" DataSource="mysource">
SELECT
name,
url,
langid,
Right(name,1) AS FirstChar
FROM domain
GROUP BY
FirstChar
</cfquery>
<cfoutput query="" group="">
#FirstChar#
<cfoutput>
#name# #Url#
</cfoutput>
</cfoutput>
This is the way i would like it to show
A
ABCnews abcnews.go.com
AdWeek ;
Advertising Age ;
Back to top
B
BBC News news.bbc.co.uk
Bloomberg ;
Brandweek
i am new to coldfusion so I hope someone acn help me