PHP
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: Fri, 05 Sep 2008

view this page in

fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5)

fbsql_field_name結果の指定したフィールドの名前を得る

説明

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

指定したフィールドインデックスの名前を返します。

パラメータ

result

fbsql_list_fields() が返す結果ポインタ。

field_index

フィールドの数値オフセット。フィールドのインデックスは 0 からはじまります。

返り値

名前を表す文字列、あるいはフィールドが存在しない場合に FALSE を返します。

例1 fbsql_field_name() の例

<?php
// users テーブルには以下の 3 つのフィールドがあります
//   user_id
//   username
//   password.

$res fbsql_db_query("users""select * from users"$link);

echo 
fbsql_field_name($res0) . "\n";
echo 
fbsql_field_name($res2);
?>

上の例の出力は以下となります。

user_id
password



add a note 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: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites