Re: Re: Get MySQL table field names

From: Date: Mon, 01 Mar 2004 03:31:17 +0000
Subject: Re: Re: Get MySQL table field names
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-179151@lists.php.net to get a copy of this message
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 */

« previous php.general (#179151) next »