*** empty log message ***

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@20750 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sterling Hughes 2000-02-29 20:54:04 +00:00
parent c175e3e533
commit c8d56c9cb6

View file

@ -310,6 +310,51 @@ ibase_close ($dbh);
</refsect1>
</refentry>
<refentry id="function.ibase-num-fields">
<refnamediv>
<refname>ibase_num_fields</refname>
<refpurpose>
Get the number of rows in a result set.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcdef>int <function>ibase_num_fields</function></funcdef>
<paramdef>int <parameter>result_id</parameter></paramdef>
</funcsynopsis>
<para>
Returns an integer containing the number of fields in a result set.
<informalexample>
<programlisting role="php">
$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);
</programlisting>
</informalexample>
</para>
<para>
See also: <function>ibase_field_info</function>.
</para>
<note>
<para>
<function>Ibase_timefmt</function> is currently not functional
in PHP4.
</para>
</note>
</refsect1>
</refentry>
</reference>
<!-- Keep this comment at the end of the file