ң

fbsql_list_fields

(PHP 4 >= 4.0.6)

fbsql_list_fields - FrontBase.

resource fbsql_list_fields (string database_name, string table_name [, resource link_identifier])

fbsql_list_fields() tablename. . , fbsql_field_flags() , fbsql_field_len() , fbsql_field_name() fbsql_field_type() .

. -1, . $phperrmsg, , @fbsql(), .

1. fbsql_list_fields()
$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";; }

:

field1 field2 field3 ...

ң
fbsql_list_dbs fbsql_list_tables