downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<fbsql_field_lenfbsql_field_seek>
Last updated: Thu, 26 Jun 2008

fbsql_field_name

(PHP 4 >= 4.0.6, PHP 5)

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

Description

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

Returns the name of the specified field index.

Parameters

result

A result pointer returned by fbsql_list_fields().

field_index

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

Return Values

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

Examples

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($res, 0) . "\n";
echo
fbsql_field_name($res, 2);
?>

The above example will output:

user_id
password



add a noteadd a note User Contributed Notes
Get the name of the specified field in a result
There are no user contributed notes for this page.




<fbsql_field_lenfbsql_field_seek>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs