FrontBase 函数
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5)

fbsql_field_nameGet 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.

范例

Example #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);
?>

上例将输出:

user_id
password

参见


FrontBase 函数
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程