wb_field_name

string wb_field_name( resource cursor, integer column_number )
Parametry
-
cursor
- Identifier of a cursor, returned by the wb_exec or wb_psql_execute function.
-
column_number
- Retrieves the name of the column specified by the column number. Enumeration begins with 1.
Popis
This function returns the name of the column specified by the column number in the cursor.
Návratová hodnota
A string with the column name. FALSE if an error occurs.
Příklad
Get the name of the third column in the $cursor cursor:
$result = wb_field_name($cursor,3);
if( $result==FALSE ) { /* handle the error */ }
else { echo "column name: ",$result; }