Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
davellaman #1
order by 2 things?
Ok, I want my output to look similiar to this:
------------------------------------------------------------
May 16th 2005,
Animals
-download animal clip 1
-download animal clip 2
automobile
-download car clip 1
random
-download random clip 1
May 15th 2005,
Animals
-download animal clip 1
-download animal clip 2
automobile
-download car clip 1
random
-download random clip 1
-----------------------------------------------------
I am having a problem looping out query. I loop it, but the date is displayed
everytime it is looped and i was thinking about putting it in a cfif but i
wasnt sure what value to check it against. also, they are never organised by
category, they simply just show each value one by one no matter what
category...this is currently how it is displaying:
ex.
May 16th
animal
-download clip 1
May 16th
animal
-download clip2
if anyone has any idea how to do this i would greatly appreciate it.
thank you
davellaman Guest
-
Tab Order always greyed out, need to redefine order but can't
I had a check box but then i had to delete it and change it to a text field. now my tab order is all out of whack and I can't seem to set the tab... -
Can't I do these things?
:confused; I am new to Contribute, and I brought to it a set of expectations based on other content management systems I've been exposed to. I'm... -
Updating records in order (into an order)
I'm storing questions for a user-defined quiz. I can store them in the order they are entered without any problem. But... The user needs to have... -
Which one of these things is not like the other...
C'mon, can you tell which one? (Title song from Sesame Street, a PBS Production) http://www.apple.com/ (Apple's website banner displaying the new... -
Things to Try >>>
Well here is a definite design tip, from experience ;-), if you can avoid using MAC for web designing and uploading! DO IT! I'm sorry to all... -
OldCFer #2
Re: order by 2 things?
I think what you're after is grouped cfoutput, which has to be grouped by the
query sort order
Select * from the table order by TheDate
<cfoutput query="queryname" group="TheDate">
#TheDate#
<cfoutput> #Category# #OtherFields#
</cfoutput>
</cfoutput>
OldCFer Guest



Reply With Quote

