note 57836 deleted from function.mysql-list-fields by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 May 2009 13:36:57 +0000 |
| Subject: | note 57836 deleted from function.mysql-list-fields by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154230@lists.php.net to get a copy of this message | ||
Note Submitter: arster
----
# This should also give you an array of column names
$res = mysql_query("SHOW COLUMNS FROM
my_table");
while ($row = mysql_fetch_array($res)) $col_names[]=$row[0];