★ wanayoo — archive 1999 http://fr.php.net/manual/function.ibase-num-fields.phpNouvelle recherche | Portail wanayoo
PHP Saturday, April 28, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  


previousibase_timefmt
ibase_errmsgnext

Last updated: Mon, 08 Jan 2001

ibase_num_fields

(PHP 3>= 3.0.7, PHP 4 >= 4.0RC1)

ibase_num_fields --  Get the number of fields in a result set

Description

int ibase_num_fields (int result_id)

Returns an integer containing the number of fields in a result set.


<?php
    $dbh = ibase_connect ($host, $username, $password);
    $stmt = 'SELECT * FROM tblname';
    $sth = ibase_query ($dbh, $stmt);

    if (ibase_num_fields($sth) > 0) {
        while ($row = ibase_fetch_object ($sth)) {
            print $row->email . "\n";
        }
    } else {
        die ("No Results were found for your query");
    }

    ibase_close ($dbh);
?>
      

See also: ibase_field_info().

Note: Ibase_num_fields() is currently not functional in PHP 4.

previousibase_timefmt
ibase_errmsgnext

Last updated: Mon, 08 Jan 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Sat Apr 28 01:31:29 2001 MET DST