Results 1 to 6 of 6

Thread: list/each [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    list/each [Resolved]

    I'm using the following:
    PHP Code:
    while(list($key) = each($row))
            {
                echo 
    $key "<br>";
            } 
    I'm just trying to get the titles of the columns in the table (I'm building a web-based query tool). However, when I echo, I get the following results:
    0
    Field0
    1
    Field1
    2
    Field2
    etc...
    I just want the field names and I don't understand why those indexes are in there. Help!? I guess I could just only echo the odd result, but that seems like a pain.
    Last edited by ober0330; Jul 15th, 2004 at 02:42 PM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

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



Click Here to Expand Forum to Full Width