php man page for fbsql_list_fields

Query: fbsql_list_fields

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FBSQL_LIST_FIELDS(3)							 1						      FBSQL_LIST_FIELDS(3)

fbsql_list_fields - List FrontBase result fields

SYNOPSIS
resource fbsql_list_fields (string $database_name, string $table_name, [resource $link_identifier])
DESCRIPTION
Retrieves information about the given table.
PARAMETERS
o $database_name - The database name. o $table_name - The table name. o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments.
RETURN VALUES
Returns a result pointer which can be used with the fbsql_field_xxx functions, or FALSE on error.
ERRORS
/EXCEPTIONS A string describing the error will be placed in $phperrmsg, and unless the function was called as @fbsql() then this error string will also be printed out.
EXAMPLES
Example #1 fbsql_list_fields(3) example <?php $link = fbsql_connect('localhost', 'myname', 'secret'); $fields = fbsql_list_fields("database1", "table1", $link); $columns = fbsql_num_fields($fields); for ($i = 0; $i < $columns; $i++) { echo fbsql_field_name($fields, $i) . " ";; } ?> The above example will output something similar to: field1 field2 field3
SEE ALSO
fbsql_field_len(3), fbsql_field_name(3), fbsql_field_type(3), fbsql_field_flags(3). PHP Documentation Group FBSQL_LIST_FIELDS(3)
Related Man Pages
mysql_error(3) - php
ldap_get_option(3) - php
mysql_db_query(3) - php
mysql_list_fields(3) - php
mysql_stat(3) - php
Similar Topics in the Unix Linux Community
Need to substitue space with \n
SH Script help. editing string
Extract all the ocurrences in a String
Cut portion of a field in shell scripts
awk counting number of occurences