note 57104 added to function.mysql-list-fields
| From: | KevinJohnson at osu1 dot php dot net | Date: | Fri, 23 Sep 2005 20:29:21 +0000 |
| Subject: | note 57104 added to function.mysql-list-fields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95668@lists.php.net to get a copy of this message | ||
You can also try this to get the column names into an array.
// Use this to get the field names from a query.
$query_string = "SELECT * FROM table";
$result_str1 = mysql_query($query_string);
$str1 = mysql_fetch_assoc($result_str1);
$str1 = array_keys($str1);
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-fields.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57104
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57104&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57104&report=yes
Search -- http://master.php.net/manage/user-notes.php