Re: Get Column Names for mySQL...
| From: | Marek Kilimajer | Date: | Sun, 06 Jun 2004 21:09:34 +0000 |
| Subject: | Re: Get Column Names for mySQL... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187751@lists.php.net to get a copy of this message | ||
Russell P Jones wrote:
How would one cycle through and get all of the column names in a mysql table? say that i have... id | title | name | description 1 | MR. | russ | age XX height XX 2 | MRS. | jan | age XX height XXX and I want to print out the 4 column names... how would one accomplish this? RussThis will get you started: mysql_query('DESCRIBE table_name'); Please don't hijack threads.