From c8d56c9cb67b7c710360ea7b4734600e11467038 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Tue, 29 Feb 2000 20:54:04 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@20750 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/ibase.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/functions/ibase.xml b/functions/ibase.xml index e1ab0bb2aa..4515acf9f6 100644 --- a/functions/ibase.xml +++ b/functions/ibase.xml @@ -310,6 +310,51 @@ ibase_close ($dbh); + + + ibase_num_fields + + Get the number of rows in a result set. + + + + Description + + int ibase_num_fields + int result_id + + + Returns an integer containing the number of fields in a result set. + + +$dbh = ibase_connect ($host, $username, $password); +$stmt = 'SELECT * FROM tblname'; +$sth = ibase_query ($dbh, $stmt); + +if ( ibase_num_rows($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. + + + + Ibase_timefmt is currently not functional + in PHP4. + + + + +