PHP: fbsql_field_name - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fbsql_field_seek fbsql_field_len

Last updated: Sat, 27 Jan 2007

view this page in

# fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5)

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

## Описание

string fbsql_field_name ( resource result [, int field_index] )

Returns the name of the specified field index.

## Список параметров

`result`

  A result pointer returned by fbsql_list_fields().

`field_index`

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

## Возвращаемые значения

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

## Примеры

Пример 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);
?>`

Результат выполнения данного примера:

    user_id
    password

## Смотрите также

fbsql_field_type()

add a note User Contributed Notes
fbsql_field_name
There are no user contributed notes for this page.
fbsql_field_seek fbsql_field_len

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST