Comunitatea PHP Romania
 

 
ibase_field_info

ibase_field_info

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

ibase_field_info --  Get information about a field

Description

array ibase_field_info ( resource result, int field_number)

Returns an array with information about a field after a select query has been run. The array is in the form of name, alias, relation, length, type.

<?php
    $rs
= ibase_query("SELECT * FROM tablename");
    
$coln = ibase_num_fields($rs);
    for (
$i = 0; $i < $coln; $i++) {
        
$col_info = ibase_field_info($rs, $i);
        echo
"name: ". $col_info['name']. "\n";
        echo
"alias: ". $col_info['alias']. "\n";
        echo
"relation: ". $col_info['relation']. "\n";
        echo
"length: ". $col_info['length']. "\n";
        echo
"type: ". $col_info['type']. "\n";
    }
?>

See also: ibase_num_fields().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink 0 Credit Cards | Secured Loans | Mortgages | Finance | Loans
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis