fbsql_list_fields

(PHP 4 >= 4.0.6, PHP 5, PHP 7)

fbsql_list_fieldsList FrontBase result fields

˵��

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

Retrieves information about the given table.

����

database_name

The database name.

table_name

The table name.

link_identifier

�� fbsql_connect() �� fbsql_pconnect() ���ص� FrontBase ���ӱ�ʶ��.

���ѡ��δָ���������᳢�Բ���һ���� FrontBase �������Ŀ������ӣ�����û���ҵ����������ӣ��᳢��ͨ�������������� fbsql_connect() ������һ����

����ֵ

Returns a result pointer which can be used with the fbsql_field_xxx functions, or FALSE on error.

�����쳣

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.

����

Example #1 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";;
}
?>

�������̵���������ڣ�

field1
field2
field3
...

�μ�