602SQL Documentation Index  

wb_field_num

PHP

integer wb_field_num( resource cursor, string column_name, boolean silent=FALSE )


Parametry

cursor
Identifier of a cursor, returned by the wb_exec or wb_psql_execute function.
column_name
Retrieves the column number from the cursor.
silent
A special flag, see description below


Popis

This function returns the number of the column of the specified name in the specified cursor. If such column does not exist, the value FALSE will be returned and an error may occur (according to the silent flag).

The silent parameter specifies whether the function should return an error if there is no column of the specified name in the cursor. If you set silent=TRUE, an error will not occur (however the function still returns FALSE). If silent=FALSE, an error will occur. The silent flag is useful to learn whether a certain column exists in the specified cursor.



Návratová hodnota

Returns the column number or FALSE if an error occurs.



Příklad