in reply to Using the mysql database columns as the table header.

from perlman:lib:DBI:
# NAME (array-ref, read-only) # Returns a reference to an array of field names for # each column. The names may contain spaces but should # not be truncated or have any trailing space. Note that # the names have the letter case (upper, lower or mixed) # as returned by the driver being used. Portable # applications should use the NAME_lc entry elsewhere in # this documentor the NAME_uc entry elsewhere in this # document. print "First column name: $sth->{NAME}->[0]\n";
update: yes, that's perlman:lib:DBI and not :CGI, thanks dmmiller2k :)

Replies are listed 'Best First'.
Re(2): Using the mysql database columns as the table header.
by dmmiller2k (Chaplain) on Dec 27, 2001 at 21:39 UTC
    from perlman:lib:CGI

    I think perhaps you meant, perlman:lib:DBI.

    dmm

    I was picking some nits and discovered one of yours.