deepatpaul
Programmer
I have a structure that I'm populating with data from a query that has two fields. Here is the query data:
<cfset application.categories = structnew() />
<cfset application.categories = getAllCategories /> (getAllCategories is the name of the query resultset)
getAllCategories returns:
query
CATID CATNAME
1 1 Parts 1
2 2 Parts 2
3 3 Parts 3
4 4 Parts 4
5 5 Parts 5
6 6 Parts 6
How do I loop through a structure that contains this 2-D array?
<cfset application.categories = structnew() />
<cfset application.categories = getAllCategories /> (getAllCategories is the name of the query resultset)
getAllCategories returns:
query
CATID CATNAME
1 1 Parts 1
2 2 Parts 2
3 3 Parts 3
4 4 Parts 4
5 5 Parts 5
6 6 Parts 6
How do I loop through a structure that contains this 2-D array?