PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
budowa basenów - sport - Internet - fotografia ślubna - aparaty cyfrowe nikon - sts


fbsql_fetch_field

fbsql_fetch_field

(PHP 4 >= 4.0.6, PHP 5)

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

Opis

object fbsql_fetch_field ( resource result [, int field_offset] )

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

Parametry

result

Identyfikator wyniku zwrócony przez fbsql_query() lub 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.

Zwracane wartości

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

The properties of the object are:

Przykłady

Przykład 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);
?>

Patrz także

fbsql_field_seek()

odzyskiwanie danych - Faktorowanie Faktury Program - darmowe zdjęcia - Najlepsze pozycjonowanie stron www. Zapraszamy do pozycjonowania. - opisy - statusy na gg - Bardzo miłosne opisy na gg - Bardzo smieszne opisy na gg - odzyskiwanie danych z dysku - budowa stron internetowych - Jan Fela - programista - oglądam filmy hd blu-ray - Słownik kompow - unecp

G:2,M:0,Y:25