NinjaTurtle
01-19-2004, 05:08 AM
Dear,
i have 20 records, i want them to display in a table view with 2 columns and 10 rows for each, but the must follow the number of sorting, example:
1. a 11. k
2. b 12. l
3. c 13. m
4. d 14. n
5. e 15. o
6. f 16. p
7. g 17.q
8. h 18. r
9. i 19. s
10. j 20. t
wat i did is:
1. a 2. b
3. c 4. d
...
19. s 20. t
My source
i=1
Do while Not rs.eof
D= (i mod 2)
E=(i+1 mod 2)
if (D=1) then
response.write "<tr>"
end if
response.write "<td>"&i&". </td><td><input name='minu"&i&"' type='checkbox' value='1'> "&rs("fname")&"</td>"& vbcrlf
if (E = 1) then
response.write "</tr>"
end if
i=i+1
rsstaffOption.movenext
loop
i have 20 records, i want them to display in a table view with 2 columns and 10 rows for each, but the must follow the number of sorting, example:
1. a 11. k
2. b 12. l
3. c 13. m
4. d 14. n
5. e 15. o
6. f 16. p
7. g 17.q
8. h 18. r
9. i 19. s
10. j 20. t
wat i did is:
1. a 2. b
3. c 4. d
...
19. s 20. t
My source
i=1
Do while Not rs.eof
D= (i mod 2)
E=(i+1 mod 2)
if (D=1) then
response.write "<tr>"
end if
response.write "<td>"&i&". </td><td><input name='minu"&i&"' type='checkbox' value='1'> "&rs("fname")&"</td>"& vbcrlf
if (E = 1) then
response.write "</tr>"
end if
i=i+1
rsstaffOption.movenext
loop