yash777 0 Light Poster

hello all,
i m trying to loop an 2d array with in a 2d array. it is working fine but it is not displaying as i wanted. following is my code

Dim iRowLoop, iColLoop, upto
For iRowLoop = 0 to UBound(mytable,2) 'Earnings row%>
<tr><td width="20%">&nbsp;</td>
<% For iColLoop = 0 to UBound(mytable, 1) 'Earnings col%>
<td width="20%"><span class="fc1-2"><%=mytable(iColLoop, iRowLoop)%></span></td>
<% Next
Dim idednRow, idednCol
For idednRow = 0 to UBound (mytable1, 2) 'deduction row
For idednCol = 0 to UBound (mytable1, 1) 'deduction col%>
<td width="20%"><span class="fc1-2"><%=mytable1(idednCol, idednRow)%></span></td>
<% Next 
Next%>
</tr>
<%Next%>

the loop is giving me following result in a table.

outer loop result(Earnings)-------------------inner loop result(deductions)

BASIC --------------- 0000 ------------------- PF------- 000-------------PT ------000
HRA ------------------ 0000
LTA ------------------ 000
TA ------------------------ 000
MEDICAL
REIMBURSEMENT----000
CONVEYNACE ---------000


(the dashes are given just to understand the different cloumns)
SO, i just want that PT to come under PF.

i think i have to rearrange the loops for that.
Can you please guide me.