fbsql_field_len
fbsql_field_seek
FrontBase Funções
PHP Manual

# fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5)

fbsql_field_name — Get the name of the specified field in a result

### Descrição

string fbsql_field_name ( resource `$result` [, int `$field_index` ] )

Returns the name of the specified field index.

### Parâmetros

`result`

  A result pointer returned by fbsql_list_fields().

`field_index`

  The numerical offset of the field. The field index starts at 0.

### Valor Retornado

Returns the name as a string, or `FALSE` if the field doesn't exist.

### Exemplos

Exemplo #1 fbsql_field_name() example

`<?php
// The users table consists of three fields:
// user_id
// username
// password.
$res = fbsql_db_query("users", "select * from users", $link);
echo fbsql_field_name($res, 0) . "\n";
echo fbsql_field_name($res, 2);
?>`

O exemplo acima irá imprimir:

    user_id
    password

### Veja Também

- fbsql_field_type() - Get the type of the specified field in a result

fbsql_field_len
fbsql_field_seek
FrontBase Funções
PHP Manual