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 fieldsSYNOPSISresource fbsql_list_fields (string $database_name, string $table_name, [resource $link_identifier])DESCRIPTIONRetrieves information about the given table.PARAMETERSo $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 VALUESReturns 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.EXAMPLESExample #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 field3SEE ALSOfbsql_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_list_tables(3) - php |
fbsql_read_clob(3) - php |
mysql_create_db(3) - php |
mysql_list_dbs(3) - php |
mysql_list_fields(3) - php |
Similar Topics in the Unix Linux Community |
---|
How to insert the "\n" in a line? |
Need to substitue space with \n |
SH Script help. editing string |
Cut file using regular expressions |
Help to decode in perl script |