int ibase_num_fields
(int result_id);結果セットにおけるフィールド数を整数として返します。
1 2 $dbh = ibase_connect ($host, $username, $password); 3 $stmt = 'SELECT * FROM tblname'; 4 $sth = ibase_query ($dbh, $stmt); 5 6 if ( ibase_num_fields($sth) > 0 ) { 7 while ($row = ibase_fetch_object ($sth)) { 8 print $row->email . "\n"; 9 } 10 } else { 11 die("No Results were found for your query"); 12 } 13 14 ibase_close ($dbh); 15 |
ibase_field_info()も参照下さい。
注意: ibase_num_fields()は現在、PHP4では動作しません。