J
John Peach
Not sure if this is the right place to post this, but sure someone will
kindly advise if it isn't
I have data from a SQL recordset that i want to display in a different
format, current code :
counter=0
for d= 1 to -int((-(ubound(bdata,2) +1))/3)
response.write "<tr>"
for e= 1 to 3
for c=1 to 2
response.write "<td class='a'>"
if counter >= ubound(bdata,2) then
response.write " "
else
response.write bdata(c,counter)
end if
response.write "</td>"
next 'c
counter =counter +1
next 'e
response.write "</TR>"
next 'd
'next 'b
This write the array like
1 2 3
4 5 6
7 8
But i want to write the data like
1 4 7
2 5 8
3 6
Can anyone advise how to change the code to do this ?
Regards, with mental block
John
kindly advise if it isn't
I have data from a SQL recordset that i want to display in a different
format, current code :
counter=0
for d= 1 to -int((-(ubound(bdata,2) +1))/3)
response.write "<tr>"
for e= 1 to 3
for c=1 to 2
response.write "<td class='a'>"
if counter >= ubound(bdata,2) then
response.write " "
else
response.write bdata(c,counter)
end if
response.write "</td>"
next 'c
counter =counter +1
next 'e
response.write "</TR>"
next 'd
'next 'b
This write the array like
1 2 3
4 5 6
7 8
But i want to write the data like
1 4 7
2 5 8
3 6
Can anyone advise how to change the code to do this ?
Regards, with mental block
John