Re: Re: Get MySQL table field names
| From: | Five | Date: | Mon, 01 Mar 2004 06:49:32 +0000 |
| Subject: | Re: Re: Get MySQL table field names | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179153@lists.php.net to get a copy of this message | ||
"Jason Wong" <php-general@gremlins.biz> wrote in message news:200403011131.18255.php-general@gremlins.biz...
> On Monday 01 March 2004 10:04, Five wrote:
> > "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;'
> >
> > Could you elaborate on that a litttle? I spent about an hour researching
> > and experimenting with DESC and can't get it to work.
>
> mysql_list_fields(), read it before you use it.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> A man is only a man, but a good bicycle is a ride
> -- Murphy's Laws on Sex n50
> */
Thanks, that's much easier