php-doc-en/reference/ibase/functions/ibase-name-result.xml
Ard Biesheuvel 9ac597fb5a New functions added in PHP5
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@139459 c90b9560-bf6c-de11-be94-00142212c4b1
2003-09-02 11:40:36 +00:00

65 lines
1.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.ibase-name-result">
<refnamediv>
<refname>ibase_name_result</refname>
<refpurpose>
Assigns a name to a result set
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>ibase_name_result</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>string</type><parameter>name</parameter></methodparam>
</methodsynopsis>
<para>
This function assigns a name to a result set. This name can be used later in
UPDATE|DELETE ... WHERE CURRENT OF <parameter>name</parameter> statements.
&return.success;
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$result = ibase_query( "SELECT field1,field2 FROM table FOR UPDATE" );
ibase_name_result($result,"my_cursor");
$updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF my_cursor");
for ($i = 0; ibase_fetch_row($result); ++$i) {
ibase_execute($updateqry,$i);
}
?>
]]>
</programlisting>
</informalexample>
</para>
<para>
See also
<function>ibase_prepare</function> and
<function>ibase_execute</function>.
</para>
</refsect1>
</refentry>
<!-- 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
sgml-default-dtd-file:"../../../../manual.ced"
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
-->