English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and examples of the PHP odbc_field_name() function

PHP ODBC Reference Manual

The odbc_field_name() function gets the column name

Syntax

string odbc_field_name ( resource $result_id , int $field_number )

Definition and usage

Get the name of the field that occupies the given column number in the given result identifier.

Return value

Returns the field name as a string, or False if an error occurs.

Parameter

NumberParameters and descriptions
1

result_id

Result identifier.

2

field_number

Field number. The field number starts from1Start.

PHP ODBC Reference Manual