2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 09:13:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.odbc-num-rows" xmlns="http://docbook.org/ns/docbook">
|
2006-11-27 10:40:45 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>odbc_num_rows</refname>
|
|
|
|
<refpurpose>Number of rows in a result</refpurpose>
|
|
|
|
</refnamediv>
|
2007-12-30 13:40:52 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2006-11-27 10:40:45 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>odbc_num_rows</methodname>
|
2020-12-26 14:11:36 +00:00
|
|
|
<methodparam><type>resource</type><parameter>statement</parameter></methodparam>
|
2006-11-27 10:40:45 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2007-12-30 13:40:52 +00:00
|
|
|
Gets the number of rows in a result. For INSERT, UPDATE and DELETE
|
|
|
|
statements <function>odbc_num_rows</function> returns the number of rows
|
|
|
|
affected. For a SELECT clause this <literal>can</literal> be the number
|
|
|
|
of rows available.
|
2006-11-27 10:40:45 +00:00
|
|
|
</para>
|
2007-12-30 13:40:52 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
2006-11-27 10:40:45 +00:00
|
|
|
<para>
|
2007-12-30 13:40:52 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2020-12-26 14:11:36 +00:00
|
|
|
<term><parameter>statement</parameter></term>
|
2007-12-30 13:40:52 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The result identifier returned by <function>odbc_exec</function>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2006-11-27 10:40:45 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-12-30 13:40:52 +00:00
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns the number of rows in an ODBC result.
|
|
|
|
This function will return -1 on error.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Using <function>odbc_num_rows</function> to determine the number of rows
|
|
|
|
available after a SELECT will return -1 with many drivers.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1>
|
2006-11-27 10:40:45 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|