Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

ibase_num_fields

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

ibase_num_fields --  結果セットにおけるフィールド数を得る

説明

int ibase_num_fields ( int result_id)

結果セットにおけるフィールド数を整数として返します。

<?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);
?>

ibase_field_info()も参照下さい。

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP マニュアル". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.