96 rows of data into a table

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 96 rows of data into a table

    I have a select that will return 96 rows of data.

    Data looks like:

    A1
    A2
    ...
    A12
    B1
    ...
    B12
    ....
    ....
    H12

    I need to put this in a table like

    A1 A2 A3 .... A12
    B1
    .................................
    ..................................
    H1 H2 H3 .... H12

    Getrows doesn't work since it thinks these are 96 rows instead of 96 pieces
    of data in 8 rows

    My brain doesn't seem to be clicking this morning. Anything simple I am
    missing?

    Mike


    Mike Guest

  2. Similar Questions and Discussions

    1. #25473 [Opn->Bgs]: Updating single row in table causing all rows in table to be updated.
      ID: 25473 Updated by: sniper@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: ...
    2. #25473 [Fbk->Opn]: Updating single row in table causing all rows in table to be updated.
      ID: 25473 User updated by: jim at bluedojo dot com Reported By: jim at bluedojo dot com -Status: Feedback +Status: ...
    3. #25473 [Opn->Fbk]: Updating single row in table causing all rows in table to be updated.
      ID: 25473 Updated by: sniper@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: ...
    4. #25473 [Opn]: Updating single row in table causing all rows in table to be updated.
      ID: 25473 User updated by: jim at bluedojo dot com Reported By: jim at bluedojo dot com Status: Open Bug Type: ...
    5. #25473 [NEW]: Updating single row in table causing all rows in table to be updated.
      From: jim at bluedojo dot com Operating system: WinXP PHP version: 4.3.3 PHP Bug Type: MySQL related Bug description: ...
  3. #2

    Default Re: 96 rows of data into a table

    If there are always 12 columns, you could adjust this script:
    [url]http://www.aspfaq.com/2247[/url]

    Or maybe you are looking for a crosstab:
    [url]http://www.aspfaq.com/2462[/url]




    "Mike" <Mike@nospam.com> wrote in message
    news:eJfsdr9lDHA.2312@TK2MSFTNGP12.phx.gbl...
    > I have a select that will return 96 rows of data.
    >
    > Data looks like:
    >
    > A1
    > A2
    > ..
    > A12
    > B1
    > ..
    > B12
    > ...
    > ...
    > H12
    >
    > I need to put this in a table like
    >
    > A1 A2 A3 .... A12
    > B1
    > ................................
    > .................................
    > H1 H2 H3 .... H12
    >
    > Getrows doesn't work since it thinks these are 96 rows instead of 96
    pieces
    > of data in 8 rows
    >
    > My brain doesn't seem to be clicking this morning. Anything simple I am
    > missing?
    >
    > Mike
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: 96 rows of data into a table

    Thanks Aaron. The first should work.

    Mike

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:OZ3pgu9lDHA.3732@tk2msftngp13.phx.gbl...
    > If there are always 12 columns, you could adjust this script:
    > [url]http://www.aspfaq.com/2247[/url]
    >
    > Or maybe you are looking for a crosstab:
    > [url]http://www.aspfaq.com/2462[/url]
    >
    >
    >
    >
    > "Mike" <Mike@nospam.com> wrote in message
    > news:eJfsdr9lDHA.2312@TK2MSFTNGP12.phx.gbl...
    > > I have a select that will return 96 rows of data.
    > >
    > > Data looks like:
    > >
    > > A1
    > > A2
    > > ..
    > > A12
    > > B1
    > > ..
    > > B12
    > > ...
    > > ...
    > > H12
    > >
    > > I need to put this in a table like
    > >
    > > A1 A2 A3 .... A12
    > > B1
    > > ................................
    > > .................................
    > > H1 H2 H3 .... H12
    > >
    > > Getrows doesn't work since it thinks these are 96 rows instead of 96
    > pieces
    > > of data in 8 rows
    > >
    > > My brain doesn't seem to be clicking this morning. Anything simple I am
    > > missing?
    > >
    > > Mike
    > >
    > >
    >
    >

    Mike Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139