fbsql_list_fields

List FrontBase result fields

&reftitle.description; `resource` `fbsql_list_fields` `string` `database_name` `string` `table_name` `resource` `link_identifier`

Retrieves information about the given table.

&reftitle.parameters;

`database_name`

- The database name.

`table_name`

- The table name.

&fbsql.link-identifier.description;
&reftitle.returnvalues;

Returns a result pointer which can be used with the `fbsql_field_xxx` functions, or &false; on error.

&reftitle.errors;

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.

&reftitle.examples;

### `fbsql_list_fields` 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) . "\n";;
    }
    ?>

&example.outputs.similar;

    field1
    field2
    field3
    ...

&reftitle.seealso;

- `fbsql_field_len`
- `fbsql_field_name`
- `fbsql_field_type`
- `fbsql_field_flags`