devxlogo

Order By Column Not Row with rs.Getrows

Order By Column Not Row with rs.Getrows

This ASP script will enable you to order your database by columns instead of the default by rows, which is not easy on the eye. Due to the way HTML tables are written in code, you can only return the results in this order.
Here we set the recordset to an array with a 3-column table, ordered by column. This is useful for displaying well ordered, easy-to-view results.

  0 then dcount=int(dcount)+1ReDim myarray(dcount,3,4)For i = 1 To rcountif i

devx-admin

Share the Post: