ibase_field_info

(PHP 3 >= 3.0.7, PHP 4, PHP 5)

ibase_field_info -- Lit les informations sur un champ iBase

Description

array ibase_field_info ( resource result, int field_number )

ibase_field_info() retourne un tableau contenant les informations sur le champ numéro field_number après une requête de SELECT. Le tableau contient les index name (nom), alias, relation, length (taille), type.

Exemple 1. Exemple avec ibase_field_info()

<?php
    $rs
= ibase_query("Select * from matable");
    
$coln = ibase_num_fields($rs);
    for (
$i=0 ; $i < $coln ; $i++) {
        
$col_info = ibase_field_info($rs, $i);
        echo
"Nom : " . $col_info['name'] . "\n";
        echo
"Alias : " . $col_info['alias'] . "\n";
        echo
"Relation : " . $col_info['relation'] . "\n";
        echo
"Taille : " . $col_info['length'] . "\n";
        echo
"Type : " . $col_info['type'] . "\n";
    }
?>

Voir aussi ibase_num_fields().

Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 18:02:07