Specific Answer
<cfloop from=1 to=#ArrayLen(QSNDSC) index=i>
Question:QSNDSC[i][1]
Answer:QSNDSC[i][2]
</cfloop>
General Answer
<cfloop from=1 to=#ArrayLen(QSNDSC) index=i>
<cfloop from=1 to=#ArrayLen(QSNDSC[i]) index=j>
<cfoutput>#QSNDSC[i][j]<cfoutput>
</cfloop>
</cfloop>
--------------
Ian Skinner
Web Programmer
BloodSource
Sacramento, CA
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 12:42 PM
To: CF-Talk
Subject: Totally Stupid Array[1][2] Output Question
I've been working with one dimensional arrays up to this point..
So, how do I output all values in the following (assume it's a question [1]
/answer [2] pair):
#QSNDSC[1][2]#
Output like (for all questions and answers)
question 1 - answer 1
question 2 - answer 2
question 3 - answer 3
I've been awake wayyy too long today...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4