fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5 < 5.3.0)

fbsql_field_nameGet the name of the specified field in a result

Açıklama

fbsql_field_name ( resource $result , int $field_index = ? ) : string

Returns the name of the specified field index.

Değiştirgeler

result

A result pointer returned by fbsql_list_fields().

field_index

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

Dönen Değerler

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

Örnekler

Örnek 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($res0) . "\n";
echo 
fbsql_field_name($res2);
?>

Yukarıdaki örneğin çıktısı:

user_id
password

Ayrıca Bakınız

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top