PHP: fbsql_fetch_field - Manual in Deutsh
PHP: fbsql_fetch_field - Manual in French
PHP: fbsql_fetch_field - Manual in Polish

You Are At PHP: fbsql_fetch_field - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

fbsql_fetch_field

(PHP 4 >= 4.0.6, PHP 5)

fbsql_fetch_field -- Get column information from a result and return as an object

Description

object fbsql_fetch_field ( resource result [, int field_offset] )

Used in order to obtain information about fields in a certain query result.

Parameters

result

A result identifier returned by fbsql_query() or fbsql_db_query().

field_offset

The numerical offset of the field. The field index starts at 0. If not specified, the next field that wasn't yet retrieved by fbsql_fetch_field() is retrieved.

Return Values

Returns an object containing field information, or FALSE on errors.

The properties of the object are:

Examples

Example 1. fbsql_fetch_field() example

<?php
fbsql_connect
($host, $user, $password)
    or die(
"Could not connect");
$result = fbsql_db_query("database", "select * from table")
    or die(
"Query failed");
# get column metadata
$i = 0;
while (
$i < fbsql_num_fields($result)) {
    echo
"Information for column $i:<br />\n";
    
$meta = fbsql_fetch_field($result);
    if (!
$meta) {
        echo
"No information available<br />\n";
    }
    echo
"<pre>
max_length:   $meta
->max_length
name:         $meta
->name
not_null:     $meta
->not_null
table:        $meta
->table
type:         $meta
->type
</pre>"
;
    
$i++;
}
fbsql_free_result($result);
?>

See Also

fbsql_field_seek()

szkolenia zawodowe kursy zawodowe przygotowanie do zawodu
Crm dedykowany
najlepsza strona blogs o UKS profesjonalne wyniki
Skuteczne pozycjonowanie stron łódź i cała Polska.
przetargi Adamówka

Another Useful functions:


ref.fbsql | function.fbsql-warnings | function.fbsql-username | function.fbsql-tablename | function.fbsql-table-name | function.fbsql-stop-db | function.fbsql-start-db | function.fbsql-set-transaction | function.fbsql-set-password | function.fbsql-set-lob-mode | function.fbsql-set-characterset | function.fbsql-select-db | function.fbsql-rows-fetched | function.fbsql-rollback | function.fbsql-result | function.fbsql-read-clob | function.fbsql-read-blob | function.fbsql-query | function.fbsql-pconnect | function.fbsql-password | function.fbsql-num-rows | function.fbsql-num-fields | function.fbsql-next-result | function.fbsql-list-tables | function.fbsql-list-fields | function.fbsql-list-dbs | function.fbsql-insert-id | function.fbsql-hostname | function.fbsql-get-autostart-info | function.fbsql-free-result | function.fbsql-field-type | function.fbsql-field-table | function.fbsql-field-seek | function.fbsql-field-name | function.fbsql-field-len | function.fbsql-field-flags | function.fbsql-fetch-row | function.fbsql-fetch-object | function.fbsql-fetch-lengths | function.fbsql-fetch-field | function.fbsql-fetch-assoc | function.fbsql-fetch-array | function.fbsql-error | function.fbsql-errno | function.fbsql-drop-db | function.fbsql-db-status | function.fbsql-db-query | function.fbsql-database | function.fbsql-database-password | function.fbsql-data-seek | function.fbsql-create-db | function.fbsql-create-clob | function.fbsql-create-blob | function.fbsql-connect | function.fbsql-commit | function.fbsql-close | function.fbsql-clob-size | function.fbsql-change-user | function.fbsql-blob-size | function.fbsql-autocommit | function.fbsql-affected-rows |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.