Re: Get MySQL table field names
| From: | Five | Date: | Mon, 01 Mar 2004 02:04:08 +0000 |
| Subject: | Re: Get MySQL table field names | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179149@lists.php.net to get a copy of this message | ||
"Michael Kunze" <michael.kunze@gmx.de> wrote in message news:20040229230700.43715.qmail@pb1.pair.com...
> Matt Palermo wrote:
>
> > How can I get the field names from a specified MySQL table? I don't need
> > the data, I just want to get an array of the tables field names.
>
> use 'DESC table_name;'
>
> --
> Michael Kunze
> http://www.smrealms.de/
>
> Caterva carissima mea est Ille Quis.
Could you elaborate on that a litttle? I spent about an hour researching and experimenting with DESC
and can't get it to work.