note 57836 added to function.mysql-list-fields
| From: | arster at osu1 dot php dot net | Date: | Sat, 15 Oct 2005 19:05:15 +0000 |
| Subject: | note 57836 added to function.mysql-list-fields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97073@lists.php.net to get a copy of this message | ||
# 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];
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-fields.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57836
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57836&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57836&report=yes
Search -- http://master.php.net/manage/user-notes.php