note 41522 added to function.odbc-field-name
| From: | hayes029 at bama dot ua dot edu | Date: | Tue, 13 Apr 2004 14:01:59 +0000 |
| Subject: | note 41522 added to function.odbc-field-name | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68071@lists.php.net to get a copy of this message | ||
In search of a function that would simply return an array with the names of the fields in a result
identifier, the only thing I could find was the odbc_field_name function. So, for anyone else
looking for such a function, here's the (very simple) function I wrote:
function odbc_field_names ($result) {
for ($i=1; $i <= odbc_num_fields($result); $i++) $return_array[$i-1] = odbc_field_name($result,
$i);
return $return_array;
}
Very simple, I know, but I thought it might be helpful.
----
Manual Page -- http://www.php.net/manual/en/function.odbc-field-name.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41522
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41522&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41522&report=yes
Search -- http://master.php.net/manage/user-notes.php