Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Scooby Doobie Doo #1
Display Array Value based off 2nd array value?
I have an array that contains a number. This number tells me which row in the
2nd array I need. So basically, if array1 is 2, I need the 2nd row in the 2nd
array to display a value.
FOR EXAMPLE
#session.FIRSTARRAY[1][1]# IS 2
HOW CAN I LOOP THROUGH
#SESSION.SECONDARRAY[2]# AND DISPLAY THE 2ND ROW VALUE ?
DOES THAT MAKE SENSE TO YOU?
Right now it's choking on my if I use the first array value in the 2nd array
value like this
#SESSION.SECONDARRAY[#session.FIRSTARRAY[1][1]#][2]#
Scooby Doobie Doo Guest
-
How to display CFC array of structures in a Flexdatagrid?
Hi, I had the above process working at some point, but for unknown reasons, it has stopped working. Quite simply, my CFC returns an array of... -
Fetch array, display and update, all in one.. ?
Hi All, I have designed a debit-system database with a PHP frontend. The amounts need to be updated on a monthly basis. now i have 10 clients in... -
increment an array element to display jpg's ...
I'm reading a directory of pictures , and trying to display them nicely formated in a table 4 accross... a few issues .. My play with array's... -
[PHP] How to store result in array for later display?
In the following code snippet, I populate an array called $emp_final, which works fine, as I can tell if I uncomment the echo immediately after. If... -
Unable to display stored array
In the following code snippet, I build an array called $emp_final, which I attempt to echo later on. If I uncomment the echo immediately after the... -
Kronin555 #2
Re: Display Array Value based off 2nd array value?
You don't need the pound signs around the session.firstarray[1][1]
#SESSION.secondarray[SESSION.firstarray[1][1]][2]#
should work fine (assuming that secondarray is a 2-dimensional array).
If not, what error are you getting?
Kronin555 Guest



Reply With Quote

