lulu50
asked on
output an array
Hi,
I need to loop and output my array.
I need to loop and output my array.
<cfset i="1" />
<cfset ListSubMenuArray = arraynew(2)>
<cfloop query="DispSubMenu">
<cfset ListSubMenuArray [i][1]="#SubMenuName#" />
<cfset ListSubMenuArray [i][2]="#SubMenuURL#" />
<cfset i= i+1>
</cfloop>
<cfloop index="i" from="1" to="#arrayLen(ListSubMenuArray )#">
//here I need to output my array
<td style="border-right: 1px solid #adc0d1;border-top: 1px solid #adc0d1;border-left:
1px solid #adc0d1;border-bottom: 1px solid #adc0d1;width:150px;height:30px;" background="images/bg.gif"><a href="Array URL Should be here" style="color: #000000" onMouseOver="this.style.color='#93b38e'" onMouseOut="this.style.color='#000000'"><cfoutput>#Array Name should be here#</cfoutput></a>
</td><
</cfloop>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER